Lab Activity: Contiki SensorButton

Since

04.12 lab

Till

18.12 lab

Points

1

Write an app that prints current temperature (as degrees Celcius), humidity (as percentage) and light (as lux) when an user button is pressed.

Prepare 2 processes (preferably in separate source files):

Button

which detects when the button is pressed

Sensor

which takes measurements and prints their results

Then, using printf s, experiment with synchronous and asynchronous events: make the difference observable.

Be inspired by examples/sky/test-button.c, Tutorial: Sensor acquisition, User-defined Events, and a Header file.