We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]
Rating:
Author: MIKROE
Last Updated: 2020-08-21
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: ZigBee
Downloaded: 2612 times
Not followed.
License: MIT license
ZigBee Click is a compact add-on board that contains a fully integrated Zigbee transceiver with a 32-bit ARM® Cortex M3TM microprocessor, Flash and RAM memory, and peripherals.
Do you want to subscribe in order to receive notifications regarding "ZigBee click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "ZigBee click" changes.
Do you want to report abuse regarding "ZigBee click".
Library Description
Library provides functions and macros for complete control over device. Library has one buffer that collects data with zigbee_process function. You can clear it and write it with library functions, you can also check if there is new data in buffer with zigbee_resp. There is generic function for sending one string of data, and one additional function for concating two string so you can use predefined AT commands from library.
Key functions:
void zigbee_send_cmd ( uint8_t *cmd_buf )
- Sends string to devicevoid zigbee_process ( uint8_t process_b )
- Collects data to library bufferuint8_t zigbee_resp ( void )
- Checks if there is new data in library bufferExamples description
The application is composed of three sections :
void application_task ( )
{
if ( DEV_HOST == dev_mode )
{
//Broadcasts message 'MikroE' over it's PAN network
zigbee_send_at( ZIGBEE_AT_BCAST, &AT_BCAST_MSG[ 0 ] );
resp_wait( );
Delay_ms( 3000 );
}
else if ( DEV_USER == dev_mode )
{
//Checks if there is something received
resp_wait( );
}
}
Additional Functions :
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 click or RS232 click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.