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
xbee.h@0:2656fb225c5d, 2012-08-28 (annotated)
- Committer:
- tristanjph
- Date:
- Tue Aug 28 14:00:33 2012 +0000
- Revision:
- 0:2656fb225c5d
- Child:
- 1:c3d9bdcb0b03
First commit. Allows entering into config mode, read device serial, set encryption key and send data.
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| tristanjph | 0:2656fb225c5d | 1 | #include "mbed.h" |
| tristanjph | 0:2656fb225c5d | 2 | |
| tristanjph | 0:2656fb225c5d | 3 | |
| tristanjph | 0:2656fb225c5d | 4 | class xbee { |
| tristanjph | 0:2656fb225c5d | 5 | private: |
| tristanjph | 0:2656fb225c5d | 6 | PinName _tx; |
| tristanjph | 0:2656fb225c5d | 7 | PinName _rx; |
| tristanjph | 0:2656fb225c5d | 8 | public: |
| tristanjph | 0:2656fb225c5d | 9 | xbee(PinName _tx, PinName _rx); |
| tristanjph | 0:2656fb225c5d | 10 | ~xbee(); |
| tristanjph | 0:2656fb225c5d | 11 | int ConfigMode(); |
| tristanjph | 0:2656fb225c5d | 12 | int GetSerial(); |
| tristanjph | 0:2656fb225c5d | 13 | int SetKey(); |
| tristanjph | 0:2656fb225c5d | 14 | int WriteSettings(); |
| tristanjph | 0:2656fb225c5d | 15 | int ExitConfigMode(); |
| tristanjph | 0:2656fb225c5d | 16 | int SendData(); |
| tristanjph | 0:2656fb225c5d | 17 | |
| tristanjph | 0:2656fb225c5d | 18 | int serial_no[8]; |
| tristanjph | 0:2656fb225c5d | 19 | int security_key[16]; |
| tristanjph | 0:2656fb225c5d | 20 | char sendData[202]; |
| tristanjph | 0:2656fb225c5d | 21 | }; |
