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

Fork of xbee_lib by Tristan Hughes

Revision:
1:c3d9bdcb0b03
Parent:
0:2656fb225c5d
Child:
2:cb627ea9b817
diff -r 2656fb225c5d -r c3d9bdcb0b03 xbee.cpp
--- a/xbee.cpp	Tue Aug 28 14:00:33 2012 +0000
+++ b/xbee.cpp	Wed Aug 29 10:39:42 2012 +0000
@@ -90,3 +90,15 @@
     return 1;
 }
 
+void xbee::RecieveData(int numchar)
+{
+    int count=0;
+    Serial DATA(_tx,_rx);
+    while(numchar!=count) {
+        if(DATA.readable()) {
+            readData[count] = DATA.getc();
+            count++;
+        }
+
+    }
+