xbee3 2.1.0.0
|
XBEE 3 Click Example. More...
Macros | |
#define | DEVICE_NAME "XBEE 3 Click" |
#define | DESTINATION_ADDRESS_HIGH XBEE3_BROADCAST_DEST_ADDRESS_HIGH |
#define | DESTINATION_ADDRESS_LOW XBEE3_BROADCAST_DEST_ADDRESS_LOW |
#define | DEMO_APP_TRANSMITTER |
#define | DEMO_TEXT_MESSAGE "MikroE - XBEE 3 click board\r\n" |
#define | PROCESS_BUFFER_SIZE 200 |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
XBEE 3 Click Example.
This example demonstrates the use of an XBEE 3 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 3 click board\r\n" |
#define DESTINATION_ADDRESS_HIGH XBEE3_BROADCAST_DEST_ADDRESS_HIGH |
#define DESTINATION_ADDRESS_LOW XBEE3_BROADCAST_DEST_ADDRESS_LOW |
#define DEVICE_NAME "XBEE 3 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 | ) |