An open API service indexing awesome lists of open source software.

https://github.com/mimani68/mqtt_simulator

mqtt.js plugin for IOT device connection
https://github.com/mimani68/mqtt_simulator

iot mqtt mqtt-client mqtt-server

Last synced: 2 months ago
JSON representation

mqtt.js plugin for IOT device connection

Awesome Lists containing this project

README

          

## Introduction

MQTT is protocol for IOT connection.

![mqtt logo](https://github.com/mimani68/mqtt_simulator/blob/master/images/MQTT.js.png)

In this project we simulate some services and one external MQTT message broker. Client that assume is a single devices, send below topic for SMS sending.

oC%4w@shop/system/connection/sms/inbox

we use random prefix for separate call in project

oC%4w@shop

![mqtt architecture](https://github.com/mimani68/mqtt_simulator/blob/master/images/mqtt-diagram.jpg)

Main server that written in ECMAScritp6 is in class form and made in SOLID principle.

![mqtt architecture](https://github.com/mimani68/mqtt_simulator/blob/master/images/server.jpg)

____
## RUN PROJECT

a) for use this project you can run both file in same times.

$ node device-client/device.iot.js
$ node server/saman.sms.service.js

![project-screen_one](https://github.com/mimani68/mqtt_simulator/blob/master/images/ReciverServer-SmsBroker-SenderClient.jpg)

![project-screen_two](https://github.com/mimani68/mqtt_simulator/blob/master/images/screen-shot.jpg)