xbee 2.1.0.0
|
XBEE Click Example. More...
Macros | |
#define | DEVICE_NAME "XBEE Click" |
#define | DESTINATION_ADDRESS_HIGH XBEE_BROADCAST_DEST_ADDRESS_HIGH |
#define | DESTINATION_ADDRESS_LOW XBEE_BROADCAST_DEST_ADDRESS_LOW |
#define | DEMO_APP_TRANSMITTER |
#define | DEMO_TEXT_MESSAGE "MIKROE - XBEE click board\r\n" |
#define | PROCESS_BUFFER_SIZE 200 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
XBEE Click Example.
This example demonstrates the use of an XBEE click board by showing the communication between the two click boards configured in transparent mode.
The demo application is composed of two sections :
Initializes the driver and configures the click board by performing a factory reset, and setting the device name, destination address, and api mode to transparent.
Depending on the selected application mode, it reads all the received data or sends the desired message every 3 seconds.
#define DEMO_APP_TRANSMITTER |
#define DEMO_TEXT_MESSAGE "MIKROE - XBEE click board\r\n" |
#define DESTINATION_ADDRESS_HIGH XBEE_BROADCAST_DEST_ADDRESS_HIGH |
#define DESTINATION_ADDRESS_LOW XBEE_BROADCAST_DEST_ADDRESS_LOW |
#define DEVICE_NAME "XBEE Click" |
#define PROCESS_BUFFER_SIZE 200 |
void application_init | ( | void | ) |
< Logger config object.
< Click config object.
Logger initialization. Default baud rate: 115200 Default log level: LOG_LEVEL_DEBUG
void application_task | ( | void | ) |
int main | ( | void | ) |