...
Segger Debugger + ARM-JTAG 20-10 pin converter
two Openmotes
a mimsy from Kris
some wires
...
This section will tell you how to get temperature data based on the tutorial application you just create using mimsy.
include the file at the top
Code Block #include "adc_sensor.h" #include "sensors.h"
First add the
sensors_init()
in thetutorial_init()
.add the codes in the red box in the
tutorial_task_cb()
. It basically reads the temperature data from the mimsy and sends it out in the separate four bytes in the payload.On the PC side, modify
tutorial_dagroot.py
as follows: uncomment line 219 and add the temp_data = … and print out the result.run
sudo python tutorial_dagroot.py
again and WAIT.
...