A libery to connect to telegesis zigbee module. Bassed on implemtation of XBEE
Fork of xbee_lib by
Diff: telegesis.h
- Revision:
- 13:1b557befdeff
- Parent:
- 12:debf76f0c0bf
- Child:
- 16:65c47cf83467
diff -r debf76f0c0bf -r 1b557befdeff telegesis.h --- a/telegesis.h Tue Oct 15 14:10:08 2013 +0000 +++ b/telegesis.h Thu Oct 17 14:39:52 2013 +0000 @@ -3,6 +3,26 @@ #include "mbed.h" +/**Eksemple +#include "telegesis.h" +zigbee ZB(p9,p10); + +int main() { + ZB.Reset(); + wait(1); + ZB.GetSerial(); + while(1) { + ZB.GetSerial(); + ZB.RecieveData(read_data,0); + ZB.UniCast("0000","tester forbindelse"); + if (ZB.Zdat) { + ZB.Zdat=0; + printf(ZB.Zdata); + } + } +} + +*/ /** Zigbee interface class for configuring, sending and recieving data using an telegesis zigbee */ #define START_BYTE 0x7e #define ESCAPE 0x7d