Sensor Network Programming FAQ
This page lists the FAQ for Exercise 4 of the Ad Hoc and Sensor Networks Course. If you have any questions about Exercise 4 not already answered on this page please contact Nicolas or Pascal.
-
Do I have to program the sending application for the Morse Telegraph by myself?
You can use the already existing SimpleBlinker project for this. Simply compile and flash it on one of the nodes and here we go :-).
-
My "Make Options" view disappeared?
Restart Eclipse and they are back again.
-
My Morse Receiver does not produce any output. What's the matter?
One possible source of failure may be the threshold used to distinguish the current state of the light sensor (on or off). Use the following code snippet to determine the right threshold.
call Terminal.printuint16_t(...); call Terminal.printnewline();
-
Why does the following code result in a "syntax error before 'var'" error message?
command result_t Test.func() { state = FALSE; uint8_t var; ... return SUCCESS; }
The definition of new variables is only allowed at the very beginning of a function. For a correct version of the above code snippet one had to swap the first two statements.