IoT device simulator with MQTT

Ankita Dhorajiya

Jan 11, 2020

Project summary

IoT-device-simulator was an MQTT based IoT system where we can add devices and get connected with it. In this, the authorized user should create templates that are about the device JSON file. After the creation of a template user can add a device with its image and created template JSON(that we created earlier). Default we are displaying added device details. MQTT broker (created client from rails console ) can publish device message and the user can see devices communication in this system.


For MQTT can't get a solution that how it is working on the server after connection and how its session was generated and how to show live communication to site


  • While searching for MQTT, I got a very good solution flespi.
  • Flespi is an innovative backend platform for connecting telematics hardware of any type to various BI and telematics systems, providing unified data communication via REST API.
  • We have used the MQTT broker API for creating a live session for the current device and checking how devices are communicating. 
  • In the MQTT client tab, we are creating a session for the device and create a client for the same

  • We have established a connection for a client in flespi with rails console. And send and receive messages manually on flespi dashboard

  • Another roadblock is that how we will display live communication from flespi. For that, we have used Action cable broadcast feature of rails framework and created channel and use thread

  • And displaying on our website like

Ankita Dhorajiya, Sr. Full Stack ROR Developer @ Essence Solusoft
Sr. Full-stack ROR developer, Shopify App Developer, self-learner, passionate, Helping hand. I love to explore new things and always share with other developers. I always ready to face new challenges and to get the best solution with my try.


We are open for new challenges and we help you reach your goals!