Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of xbee_lib by
Diff: telegesis.cpp
- Revision:
- 9:c8e4339ccc29
- Parent:
- 8:4682155753ec
- Child:
- 11:18ff088287ea
diff -r 4682155753ec -r c8e4339ccc29 telegesis.cpp
--- 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);
