A library allowing basic functions of the XBEE pro to be used. Currently supported are: Enter/exit config mode, reading device serial number, setting encryption key, writing settings to non volatile memory and sending data strings.
Dependents: IOT_sensor_nfc Xbee_Hello_world Xbee_Hello_world_A Xbee_Hello_World_B ... more
Revision 6:6455a079bdb3, committed 2012-08-31
- Comitter:
- tristanjph
- Date:
- Fri Aug 31 15:48:55 2012 +0000
- Parent:
- 5:714651141a83
- Commit message:
- Documentation update
Changed in this revision
xbee.cpp | Show annotated file Show diff for this revision Revisions of this file |
xbee.h | Show annotated file Show diff for this revision Revisions of this file |
diff -r 714651141a83 -r 6455a079bdb3 xbee.cpp --- a/xbee.cpp Fri Aug 31 15:46:34 2012 +0000 +++ b/xbee.cpp Fri Aug 31 15:48:55 2012 +0000 @@ -133,10 +133,10 @@ void xbee::Reset() { - DigitalOut rssi(_reset); - rssi = 0; + DigitalOut rst(_reset); + rst = 0; wait_ms(10); - rssi = 1; + rst = 1; wait_ms(1); }
diff -r 714651141a83 -r 6455a079bdb3 xbee.h --- a/xbee.h Fri Aug 31 15:46:34 2012 +0000 +++ b/xbee.h Fri Aug 31 15:48:55 2012 +0000 @@ -41,7 +41,7 @@ * @return Returns 1 on success. */ int GetSerial(int*); - /** Sets the encryption key to the one stored in security_key. + /** Sets the encryption key. This should be a 128-bit key. * @param key Pointer to the network key to set. * @return Returns 1 on success. */