You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/README.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,19 @@
3
3
This Rust application polls the internal temperature sensor every 10 seconds and displays the results.
4
4
5
5
The application is compiled as a Rust library `libmylib.rlib`, which is injected into the Mynewt build.
6
+
7
+
[`lib.rs`](lib.rs): Main library module. Contains `main()`, called by Mynewt at startup, and the panic handler. Imports the modules below via the `mod` directive.
[`listen_sensor.rs`](listen_sensor.rs): Calls the [Mynewt Sensor Framework API](https://mynewt.apache.org/latest/os/modules/sensor_framework/sensor_framework.html) to poll the [Blue Pill internal temperature sensor](/libs/temp_stm32) every 10 seconds, and register a Listener Function that will be called after each poll.
14
+
15
+
[`send_coap.rs`](send_coap.rs): Called by the Listener Function after each poll of the internal temperature sensor.
0 commit comments