OTA_examples modified to work for Cloudtracker Rain Gauge. Main code: Cloudtracker/example/src/main.cpp
Dependencies: libmDot-mbed5 ISL29011
TTI Downlink Commands:
Downlink commands will only be received and committed to device config directly after an uplink payload has been received .
Run a soft CPU reset
This will cause the device to reset and re-join the network.
- Command: 0x01 - resetCpu()
Change value of rain_total
- Command: 0x02 - rain_total = 0
During install, the bucket will often tip, causing false readings of rainfall. This command allows you to 0 the value when install is complete.
Change the amount of time between uplink packets
Default value is: 1min
- Command: 0x03 - uplinkInterval = 15mins
- Command: 0x04 - uplinkInterval = 30mins
- Command: 0x05 - uplinkInterval = 1hr
- Command: 0x06 - uplinkInterval = 1min (debugging mode*)
*debugging mode sends a packet every minute. This can help confirm install & signal quality. When device packets appear normal, Command: 0x03 can be sent to return the uplinkInterval back to 15mins.
Change the amount of retries a packet has
Default value is: 0
- Command: 0x07 - set ACK = 0 (off)
- Command: 0x08 - set ACK = 1
- Command: 0x09 - set ACK = 3
- Command: 0x0A - set ACK = 5
- Command: 0x0B - set ACK = 8 (max)
Lower values of ACK will help save battery.