![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
multihop protocol
Dependencies: mbed
Diff: remote.cpp
- Revision:
- 3:1b37d57a4e41
- Parent:
- 2:9365aaf34637
- Child:
- 4:024e613151a5
diff -r 9365aaf34637 -r 1b37d57a4e41 remote.cpp --- a/remote.cpp Tue Nov 10 21:12:58 2015 +0000 +++ b/remote.cpp Tue Nov 10 23:00:05 2015 +0000 @@ -3,7 +3,10 @@ #include <string> #include "packet.h" -// RF tranceiver to link with handheld. +//define a node number +#define NODE 2 + +// RF tranceiver to link with gateway. MRF24J40 mrf(p11, p12, p13, p14, p21); // LEDs you can treat these as variables (led2 = 1 will turn led2 on!)