RYB080I Click Example.
Description
This example demonstrates the use of RYB080I click board by processing data from a connected BT device.
The demo application is composed of two sections :
Application Init
Initializes the driver and logger.
Application Task
Application task is split in few stages:
- RYB080I_POWER_UP: Powers up the device and reads the system information.
- RYB080I_CONFIG_EXAMPLE: Sets the BT device name and enables the full power mode.
- RYB080I_EXAMPLE: Performs a BT terminal example by processing all data from connected BT devices and sending back an adequate response messages.
Additional Function
- static void ryb080i_clear_app_buf ( void )
- static void ryb080i_log_app_buf ( void )
- static err_t ryb080i_process ( ryb080i_t *ctx )
- static err_t ryb080i_read_response ( ryb080i_t *ctx, uint8_t *rsp )
- static err_t ryb080i_power_up ( ryb080i_t *ctx )
- static err_t ryb080i_config_example ( ryb080i_t *ctx )
- static err_t ryb080i_example ( ryb080i_t *ctx )
- Note
- We have used the Serial Bluetooth Terminal smartphone application for the test. A smartphone and the click board must be paired to exchange messages.
- Author
- Stefan Filipovic