zigbee 2.0.0.0
|
ZigBee Click Example. More...
Functions | |
void | zigbee_clear_app_buf (void) |
ZigBee clearing application buffer. | |
void | resp_wait (zigbee_t *ctx) |
ZigBee wait response. | |
void | application_init (void) |
void | application_task (void) |
int | main (void) |
Variables | |
uint8_t | dev_mode |
uint8_t | app_mode |
char | AT_BCAST_MSG [15] = ":00,MikroE" |
char | AT_HOST_CFG1 [10] = "00=6314" |
char | AT_HOST_CFG2 [20] = "0A=0914;password" |
char | AT_HOST_CFG3 [50] = "09=5A6967426565416C6C69616E63653039;password" |
ZigBee Click Example.
This is an example that demonstrates the use of the ZigBee Click board.
The demo application is composed of two sections :
Initialization of driver, UART ISR and then configures device. Depending on previous selected device mode it creates new PAN network or joins to one.
Host mode: Broadcasts message 'MikroE' every 3 seconds. User mode: Checks if something is received.
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 | ) |
void resp_wait | ( | zigbee_t * | ctx | ) |
ZigBee wait response.
This function is used for waiting for complete response.
void zigbee_clear_app_buf | ( | void | ) |
ZigBee clearing application buffer.
This function clears memory of application buffer and reset it's length and counter.
uint8_t app_mode |
char AT_BCAST_MSG[15] = ":00,MikroE" |
char AT_HOST_CFG1[10] = "00=6314" |
char AT_HOST_CFG2[20] = "0A=0914;password" |
char AT_HOST_CFG3[50] = "09=5A6967426565416C6C69616E63653039;password" |
uint8_t dev_mode |