EnOcean2 Click example.
Description
This example reads and processes data from EnOcean 2 clicks.
The demo application is composed of two sections :
Application Init
Initializes driver init and initializes chip and sets callback handler.
Application Task
It checks if a switch is pressed, and logs an appropriate message to the uart terminal.
Additional Function
- enocean2_process ( ) - The general process of collecting data the module sends.
- callback_handler ( enocean2_packet_t *packet ) - Checks if a new response message is ready and executes a response message parsing. Once the response parsing is done, shows the response message on the uart terminal.
- decode_command ( uint8_t cmd ) - Detect which of the 4 buttons is pressed.
- Author
- MikroE Team