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.
Dependents: IOT_sensor_nfc Xbee_Hello_world Xbee_Hello_world_A Xbee_Hello_World_B ... more
Diff: xbee.cpp
- Revision:
- 5:714651141a83
- Parent:
- 4:ede20c047d8b
- Child:
- 6:6455a079bdb3
--- a/xbee.cpp Wed Aug 29 14:34:53 2012 +0000
+++ b/xbee.cpp Fri Aug 31 15:46:34 2012 +0000
@@ -68,14 +68,14 @@
return 1;
}
-int xbee::SetKey(int* key)
+int xbee::SetKey(char* key)
{
Serial DATA(_tx,_rx);
DATA.printf("ATEE 1 \r");
DATA.scanf ("%*s");
wait_ms(1);
- DATA.printf("ATKY %x \r",key);
+ DATA.printf("ATKY %s \r",key);
DATA.scanf ("%*s");
return 1;
}
Xbee Pro
Seeed XBee Shield V2.0