•
State 1 – Leds ON for 2 seconds
•
State 2 – Leds blinking for 3 seconds
•
State 3 – Sending messages
State 1 and 2 are only executed once (when program starts) whereas state 3 will loop indefinitely every 3 seconds (if we reset
Waspmote, the program starts again).
Every packet contains a message with sensor data formatted as Waspmote Data Frame. For further information, please check
the Waspmote Data Frame Guide in:
http://www.libelium.com/development/waspmote/documentation/programming
Example:
~\0x00I\0x90\0x00}3\0xa2\0x00@z\0xcb\0x92\0xd8\0xd3\0x02<=>\0x80\0x03#35689722#WASPMOTE#7#A
CC:80;10;987#IN_TEMP:22.50#BAT:93#\0xb4
Initially there are some hexadecimal characters, which belong to the API frame, followed by the message. In the above example
the message is:
<=>\0x80\0x03#35689722#WASPMOTE#7#ACC:80;10;987#IN_TEMP:22.50#BAT:93#
In the next chapter is shown how to compile and upload a first program in Waspmote.
26.2. Compilation
To use the Waspmote IDE compiler we must run the executable script called 'Waspmote' , which is in the folder where the
compiler has been installed.
Waspmote is divided into 4 main parts which can be seen in the following figure.
Figure: IDE – Waspmote parts
-128-
Working environment
v6.3
Need help?
Do you have a question about the Waspmote and is the answer not in the manual?