...
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 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.
...