WORK / CASE STUDIES / PROJECT

IoT device simulator with MQTT

IoT device simulator with MQTT

An MQTT-based IoT system where authorized users create device templates, add devices, and inspect live communication between the device and the broker.

An MQTT-based IoT system where authorized users create device templates, add devices, and inspect live communication between the device and the broker.

IoT device simulator with MQTT

TECHNOLOGIES

Ruby on Rails · MQTT · Flespi · Action Cable

PROJECT FACTS

Focus: device templates, broker sessions, Flespi MQTT APIs, Rails console connectivity, and live communication display.

01

OVERVIEW

A simulator for device communication

The source describes a system where authorized users define device templates from JSON, then add devices that communicate through MQTT.

The product needed an understandable way to create broker sessions and surface the messages being exchanged by the current device.

02

CHALLENGE

Making broker sessions and live messages visible

The project had to explain what happened after an MQTT connection, how a session was generated, and how live communication could be displayed on the website rather than remaining hidden inside the broker.

03

SOLUTION

Flespi sessions plus Rails real-time delivery

The source describes using Flespi’s MQTT broker API to create a live session for the current device, then using Rails Action Cable broadcasting and a channel to surface communication in the application.

04

OUTCOMES

A visible communication loop

The verified material supports a qualitative outcome: the system connected a client through Flespi, sent and received messages, and displayed the communication in the website interface.

ENGINEERING / IMPLEMENTATION

How the system was put together

1

01 / DEVICE TEMPLATES

Turn a device JSON shape into a usable simulator

Authorized users created templates describing a device, then added devices that could connect through MQTT.

The user-facing problem

The simulator made the device model and its connection state visible to the people operating it.

1

01 / DEVICE TEMPLATES

Turn a device JSON shape into a usable simulator

Authorized users created templates describing a device, then added devices that could connect through MQTT.

The user-facing problem

The simulator made the device model and its connection state visible to the people operating it.

2

02 / LIVE COMMUNICATION

Broker sessions surfaced through Rails

Flespi supplied the MQTT broker API and Rails Action Cable broadcast the communication back into the website interface.

Verified focus

The source documents establishing a client connection, sending and receiving messages, and displaying them in the application.

2

02 / LIVE COMMUNICATION

Broker sessions surfaced through Rails

Flespi supplied the MQTT broker API and Rails Action Cable broadcast the communication back into the website interface.

Verified focus

The source documents establishing a client connection, sending and receiving messages, and displaying them in the application.

SCREENSHOTS / GALLERY

The working surface

RELATED CASE STUDIES

More engineering work

SaaS application using Spree Commerce and Ruby on Rails

SaaS application using Spree Commerce and Ruby on Rails

A multi-tenant ecommerce platform with separate stores, domains, themes, roles, and store-level operations.

GraphQL integration in Shopify apps

GraphQL integration in Shopify apps

A Shopify combo-product app that retrieves product, inventory, and metafield data through focused GraphQL queries.

SaaS application using Spree Commerce and Ruby on Rails

SaaS application using Spree Commerce and Ruby on Rails

A multi-tenant ecommerce platform with separate stores, domains, themes, roles, and store-level operations.

GraphQL integration in Shopify apps

GraphQL integration in Shopify apps

A Shopify combo-product app that retrieves product, inventory, and metafield data through focused GraphQL queries.

next step

Tell us what you are trying to build.

No spec required. Send a paragraph, an old repo link, or a screenshot of the system you are replacing. A senior Rails engineer will review it and reply with real feedback.

essence logo

next step

Tell us what you are trying to build.

No spec required. Send a paragraph, an old repo link, or a screenshot of the system you are replacing. A senior Rails engineer will review it and reply with real feedback.

essence logo

next step

Tell us what you are trying to build.

No spec required. Send a paragraph, an old repo link, or a screenshot of the system you are replacing. A senior Rails engineer will review it and reply with real feedback.

essence logo