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

Fork of xbee_lib by Tristan Hughes

Revision:
17:5a3f81b10a61
Parent:
15:8d4990362a80
Child:
18:10fcddf238c9
--- a/telegesis.cpp	Fri Oct 18 08:59:47 2013 +0000
+++ b/telegesis.cpp	Fri Oct 18 09:05:43 2013 +0000
@@ -220,6 +220,11 @@
              }   
          }
          if (strstr(_responseFrameString,"LeftPAN:")) PanOnline=0;  //Local node has left the Pan
+         if (strstr(_responseFrameString,"LostPAN:")) PanOnline=0;  //Local node has left the Pan
+         if (strstr(_responseFrameString,"ERROR:")) {  
+            p=strstr(_responseFrameString,":"); p++; //P indholder nu SEQ nummer
+            ErrorCode=hextoint(p);
+         }   
 
          if (strstr(_responseFrameString,"NEWNODE:")) { //NEWNODE: <NodeID>,<EUI64>,<Parent NodeID>
              //new node on the pan