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

Fork of xbee_lib by Tristan Hughes

Revision:
26:2a85af491d92
Parent:
24:5ed5311266b0
Child:
27:a38b67f5be8f
diff -r 31120552e53c -r 2a85af491d92 telegesis.h
--- a/telegesis.h	Sat Nov 16 13:14:26 2013 +0000
+++ b/telegesis.h	Sun Dec 22 14:46:40 2013 +0000
@@ -26,7 +26,7 @@
 /** Zigbee interface class for configuring, sending and recieving data using an telegesis zigbee */
 #define START_BYTE 0x7e
 #define ESCAPE 0x7d
-#define MAX_FRAME_DATA_SIZE 110
+#define MAX_FRAME_DATA_SIZE 90
 
 class zigbee
 {
@@ -126,7 +126,7 @@
      /**
       * Indicator on that we have got a ack on a packet
       */
-     uint8_t PacketAck;
+   uint8_t PacketAck;
      
    int channel, NodeID, EPID,framesize, PanOnline;
    char NetNodeID[17]; //a remote node
@@ -153,7 +153,7 @@
     /**
      * Non blocking check og data. To be used in NON IRQ mode
      */
-    void Work();
+    bool Work();
     char _responseFrameString[MAX_FRAME_DATA_SIZE];
     uint8_t GotFrame; //indicate that a frame has been recieved    
 private: