A libery to connect to telegesis zigbee module. Bassed on implemtation of XBEE

Fork of xbee_lib by Tristan Hughes

Revision:
9:c8e4339ccc29
Parent:
8:4682155753ec
Child:
11:18ff088287ea
--- a/telegesis.cpp	Sun Oct 13 10:00:23 2013 +0000
+++ b/telegesis.cpp	Sun Oct 13 10:13:35 2013 +0000
@@ -24,7 +24,7 @@
     Serial DATA(_tx,_rx);
     wait_ms(50);
     DATA.printf("ATI \r");
-    DATA.scanf("Telegesis ",);
+    DATA.scanf("Telegesis ",HWType);
     DATA.scanf ("%*s");
     DATA.scanf ("%X",serial_no);
     return 1;
@@ -35,11 +35,6 @@
     return 1;
 }
 
-int zigbee::WriteSettings()
-{
-
-    return 1;
-}
 
 
 void zigbee::RecieveData(char *data_buf, int numchar)
@@ -127,7 +122,7 @@
     return 1;
 }
 
-void zigbee::UniCast(char *adr,char *payload)  //Ascii mode with null terminated string
+int zigbee::UniCast(char *adr,char *payload)  //Ascii mode with null terminated string
 {
     Serial DATA(_tx,_rx);
     wait_ms(5);
@@ -137,7 +132,7 @@
     return 1;
 }
 
-void zigbee::UniCastb(char *adr,char *payload, char payloadSize) //sends data in binary format
+int zigbee::UniCastb(char *adr,char *payload, char payloadSize) //sends data in binary format
 {
     Serial DATA(_tx,_rx);
     wait_ms(5);