nesdoc documentation
These are introductory examples to become familiar with nesC programming.Files: Hello.nc, HelloM.nc, tossim.txt, and zip
Files: MultiSend.nc, MultiSendM.nc, zip, MultiMsg.h, and tossim.txt.
0: Sending message: ffff, a 7e 00 0a 88 18 00 00 00 00 88 00 a6 03 2a 02 be 03 f3 00 6b 00 8b 00 21 03 79 00 ff 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 The packet fields are described as follows: 00 7e - destination address (UART) 0a - handler ID 88 - group ID 18 - message length 00 00 - source address 00 00 - packet number 00 88 - reading 0 (0000 0000 1000 1000 - RGY=000, last three bits, as shown by LEDs) 03 a6 - reading 1 (0000 0011 1010 0110 - RGY=110, last three bits, as shown by LEDs) 02 2a - reading 2 (0000 0010 0010 1010 - RGY=010, last three bits, as shown by LEDs) Similarly, the remaining entries can be confirmed.Check the tossim.txt file for complete details.
7E 00 0A 88 18 00 00 02 00 86 00 88 00 87 00 88 00 87 00 87 00 87 00 86 00 87 00 86 00 7E 00 0A 88 18 00 00 03 00 87 00 88 00 87 00 87 00 87 00 86 00 86 00 86 00 87 00 87 00 7E 00 0A 88 18 00 00 04 00 87 00 87 00 86 00 87 00 87 00 86 00 86 00 86 00 86 00 87 00 7E 00 0A 88 18 00 00 05 00 87 00 86 00 86 00 86 00 85 00 85 00 85 00 87 00 87 00 86 00As expected, the above output is quite similar to the tossim simulator output.
Message[source=0x0] [packetNumber=0xec] [data=0x8d 0x92 0x8f 0x94 0x96 0x96 0x97 0x94 0x91 0x8e ] Message [source=0x0] [packetNumber=0xed] [data=0x8e 0x8d 0x8c 0x8b 0x8b 0x8b 0x8b 0x8b 0x87 0x6c ]
Files:
Files:
SELECT PHOTO_READING
FROM sensors
WHERE PHOTO_READING > threshold
Files:
SELECT *
FROM sensors
WHERE photo >
AND temp >
AND accelX >
AND accelY >
AND magX >
AND magY >
Files: