Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 756 Bytes

README.md

File metadata and controls

27 lines (16 loc) · 756 Bytes

##MQTT Dashboard

Small technology showcase using :

###Step 1 : Change this index.html and add your MQTT broker connection params:

var client = new Messaging.Client('broker.mqttdashboard.com', 8000, 'myclientid1234');

###Step 2 : Subscribe to a topic

client.subscribe('testGaugeTopic/#', {qos: 2});  

###Step 3 : Start sending messages

Send some random data to the topic:

for i in {1..100}
do
    mosquitto_pub -h broker.mqttdashboard.com -t testGaugeTopic/liveData --qos 2 -m "$(((RANDOM%120)+1))"
    sleep 1 
done