If you will modify the demo, please read the Data Structure Guidelines first!
There is almost none error handling, so beware!
Clone this repo
Open a terminal
Run: npm run install-dev
Go to the mqttBroker folder
Open a terminal
Run: mosquitto -c ./demoConfig.txt
https://mosquitto.org/download/
But use the demoConfig.txt
To generate data you have two options:
Run an Esp board with the code from the URA repo:
https://github.com/Natalnet/lib_ura_esp/tree/master/devs/MQTT
Run the simulation code from the Esp-Simulation folder
https://docs.micropython.org/en/latest/esp8266/tutorial/intro.html
Go to the URA folder
Open a new terminal
Run the command below:
e.g ampy --port /serial/port put test.py
For linux
/serial/port = /dev/ttyUSB0 || /dev/tty.SLAB_USBtoUART
For windows
/serial/port = COM#
# = port number
Go to the Esp-Simulation folder
Open a new terminal
Run: node sim.js
Go to the dbServer folder
Open a new terminal
Run: node server.js
Link available only for NatalNet labs personnel.
User and Password are not required!!!
Arcad will save MQTT data until the database function sends it to the database server, then it will erase it and store new data.
Login does not works yet!!!