[−][src]Module app::app_network
Transmit sensor data to a CoAP server like thethings.io. The CoAP payload will be encoded as JSON.
The sensor data will be transmitted over NB-IoT.
Note that we are using a patched version of apps/my_sensor_app/src/vsscanf.c that
fixes response parsing bugs. The patched file must be present in that location.
This is the Rust version of https://github.com/lupyuen/stm32bluepill-mynewt-sensor/blob/rust-nbiot/apps/my_sensor_app/OLDsrc/network.c
Functions
aggregate_sensor_data | |
send_sensor_data | Compose a CoAP JSON message with the Sensor Key (field name), Value and Geolocation (optional) in |