neomesh2 2.1.0.0
|
NeoMesh 2 Click Example. More...
Macros | |
#define | SINGLE_RECEIVER_MODE |
#define | APP_ORIGINATOR 0 |
#define | APP_RECEIVER_1 1 |
#define | APP_RECEIVER_2 2 |
#define | DEMO_APP APP_ORIGINATOR |
#define | DEMO_TEXT_MESSAGE "MIKROE-NeoMesh" |
#define | DEFAULT_PORT 0 |
#define | NODE_ID_ORIGINATOR 0x0100u |
#define | NODE_ID_RECEIVER_1 0x0020u |
#define | NODE_ID_RECEIVER_2 0x0021u |
Functions | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
NeoMesh 2 Click Example.
This example demonstrates the use of NeoMesh 2 click board by showing the communication between the two click boards.
The demo application is composed of two sections :
Initializes the driver and configures the click board for the selected application mode.
One click board should be set to originator mode and the others to receiver 1 or 2. If the SINGLE_RECEIVER_MODE is enabled, the originator device sends a desired message to RECEIVER_1 node and waits for an acknowledge response, otherwise it sends the same message to both RECEIVER_1 and RECEIVER_2 nodes. The receiver devices reads and parses all incoming AAPI frames and displays them on the USB UART.
#define APP_ORIGINATOR 0 |
#define APP_RECEIVER_1 1 |
#define APP_RECEIVER_2 2 |
#define DEFAULT_PORT 0 |
#define DEMO_APP APP_ORIGINATOR |
#define DEMO_TEXT_MESSAGE "MIKROE-NeoMesh" |
#define NODE_ID_ORIGINATOR 0x0100u |
#define NODE_ID_RECEIVER_1 0x0020u |
#define NODE_ID_RECEIVER_2 0x0021u |
#define SINGLE_RECEIVER_MODE |
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 | ) |