Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Segger Debugger + ARM-JTAG 20-10 pin converter

    Image RemovedImage Added
  2. two Openmotes

  3. a mimsy from Kris

  4. some wires

...

This section will tell you how to get temperature data based on the tutorial application you just create using mimsy.

  1. include the file at the top

    Code Block
    #include "adc_sensor.h"
    #include "sensors.h"
  2. First add the sensors_init() in the tutorial_init().

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

  4. On the PC side, modify tutorial_dagroot.py as follows: uncomment line 219 and add the temp_data = … and print out the result.

  5. run sudo python tutorial_dagroot.py again and WAIT.

...