Software for a plant status reporting device.
Setup to compile software to run on a Wemos D1 Mini board to send Chirp sensor metrics to Azure IoT hub.
Script setup/macos.sh
contains commands to install everything necessary to build and install this software from a MacOS machine.
- Install software on the device as usual with Arduino/Wemos.
- Device led should blink 10 times in 5 seconds to notify that configuration is starting.
- Wait 6 minutes while the device creates a filesystem on first install.
- Join WLAN named
DEVICE_SETUP
. - If a dialog doesn't open up, open browser and go to any address, eg. http://set.up/
- Fill in requested information
- name and password of the WLAN to use for access to Internet
- address of MQTT server for uploading the metrics.
- Device led blinks 10 times in 1 second to notify that the device has been configured.
- Device led blinks once per second when it works normally.
You can listen in on the serial port for debug messages.
- Send a one-letter message to get configuration report.
- Send a JSON object to update configuration
- "mqtt_server_url": an unused string for now