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
xbee Class Reference
Xbee interface class for configuring, sending and recieving data using an Xbee. More...
#include <xbee.h>
Public Member Functions | |
xbee (PinName tx, PinName rx, PinName reset) | |
Configure serial data pin. | |
int | ConfigMode () |
Puts the Xbee into config mode. | |
int | GetSerial (int *) |
Gets the serial number/mac address of the Xbee and places it into serial_no. | |
int | SetKey (char *) |
Sets the encryption key. | |
int | SetPanId (int) |
Sets the id of the PAN network for the Xbee to use. | |
int | WriteSettings () |
Writes the settings to the Non volatile memory on the Xbee. | |
int | ExitConfigMode () |
Exits config mode. | |
int | SendData (char *) |
Sends data in the send_Data buffer. | |
void | RecieveData (char *, int) |
Recieves data sent to the xbee. | |
void | Reset () |
Resets the Xbee. |
Detailed Description
Xbee interface class for configuring, sending and recieving data using an Xbee.
Definition at line 21 of file xbee.h.
Constructor & Destructor Documentation
xbee | ( | PinName | tx, |
PinName | rx, | ||
PinName | reset | ||
) |
Member Function Documentation
int ConfigMode | ( | ) |
int ExitConfigMode | ( | ) |
int GetSerial | ( | int * | serial_no ) |
void RecieveData | ( | char * | data_buf, |
int | numchar | ||
) |
int SendData | ( | char * | data_buf ) |
int SetKey | ( | char * | key ) |
int SetPanId | ( | int | pan_id ) |
Generated on Tue Jul 12 2022 21:32:58 by
