Skip to content

First approach using mqtt to spam a meteor application

License

Notifications You must be signed in to change notification settings

sakulstra/iot-mqtt-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#This is only a proof of concept This will only save the last message

mosquitto_pub -h localhost -p 1883 -t "beaglebone/1" -m "alive"
mosquitto_pub -h localhost -p 1883 -t "beaglebone/1" -m "dead"

This will save all messages

mosquitto_pub -h localhost -p 1883 -t "error" -m "kaputttschi"

Testing

Simulating mqtt messages is as easy as calling sh ./spamTest.sh

Problems so far

  • The gui will probably lag because of a lot of updates in the database. It would be okay if the view would only refresh every 2 seconds or sth. -> solved by replacing publish/subscribe with methods and timers

Todos

  • Switch to mantra/react

About

First approach using mqtt to spam a meteor application

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published