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

Fork of xbee_lib by Tristan Hughes

Revision:
18:10fcddf238c9
Parent:
17:5a3f81b10a61
Child:
19:78f44233a12f
--- a/telegesis.h	Fri Oct 18 09:05:43 2013 +0000
+++ b/telegesis.h	Fri Oct 18 16:49:02 2013 +0000
@@ -110,11 +110,11 @@
    char HWType[15];
    /** incomming data
    */
-   char Zdata[100]; 
+   char Zdata[80]; 
      /**
      
      */
-     uint64_t LocalID;
+   char LocalID[17];
      /**
       * indication of incoming data
       */
@@ -144,23 +144,18 @@
         /**Looks for a packet but dont wait
         */
     void SeePacket();
-
+    /**
+     * Non blocking check og data. To be used in NON IRQ mode
+     */
+    void Work();
 
 private:
-
-
-    uint8_t _pos;
-    // last byte read
     uint8_t b;
-    uint8_t _checksumTotal;
-    uint8_t _nextFrameId;
     int SeqNumber;
     uint8_t GotFrame; //indicate that a frame has been recieved
     // buffer for incoming RX packets.  holds only the api specific frame data, starting after the api id byte and prior to checksum
-    uint8_t _responseFrameData[MAX_FRAME_DATA_SIZE];
     char _responseFrameString[MAX_FRAME_DATA_SIZE];
-
-      Serial _zbee;
+    Serial _zbee;
     bool wait4OK();
 };