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:   Seeed_XBee_Shield Seeed_XBee_Shield-2

Fork of xbee_lib by Tristan Hughes

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?

UserRevisionLine numberNew 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 };