IoT device simulator with MQTT

Sachin Gevariya


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.

Problem

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

Solution

  • 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

Sachin Gevariya, Founder And Technical Director @ Essence Solusoft
Sachin Gevariya is a Founder and Technical Director at Essence Solusoft. He is dedicated to making the best use of modern technologies to craft end-to-end solutions. He also has a vast knowledge of Cloud management. He loves to do coding so still doing the coding. Also, help employees for quality based solutions to clients. Always eager to learn new technology and implement for best solutions.
Iot

CONTACT US

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