The simulator is a simple Go simulator that sends data from a weather sensor simulator to AIO MQ.
To start the simulator, you run the following:
$ ./weather-sim --mqServerURL "mqtts://aio-mq-dmqtt-frontend:8883" --mqTopic "foo-topic"
** Note: this is built using Golang v1.22.3
If you want to build the code locally after some changes, run the following:
mage ci
To run the server, you can build using the steps above, then you can run using the following:
$ ./bin/weather-sim --mqServerURL "mqtts://aio-mq-dmqtt-frontend:8883" --mqTopic "foo-topic"