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: 2019-07-16
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: BT/BLE
Downloaded: 3253 times
Not followed.
License: MIT license
BLE 8 Click is fully embedded stand-alone Bluetooth Low Energy connectivity module, equipped with the ANNA-B112, an ultra-small, high-performing, standalone Bluetooth low energy module for easy integration of Bluetooth low energy connectivity (BLE) into various electronic devices.
Do you want to subscribe in order to receive notifications regarding "BLE 8 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "BLE 8 click" changes.
Do you want to report abuse regarding "BLE 8 click".
Library Description
This library allows user to perform a full control of the ANNA-B112 module. With this library user can send a commands to the module to perform the desired module configurations, connection with the other device, data transferring, and also can check the response from the module. User also can check the all necessary information about module. This library consists of the some predefined commands witch can be helpful to user to configure the module. For more details check full documentation.
Key functions:
void ble8_uartDriverInit( T_BLE8_P gpioObj, T_BLE8_P uartObj )
- This function initializes UART driver.void ble8_response_handler_set( void ( *handler )( uint8_t* ) )
- This function sets handler on the function which should be performed, for example function for the results logging.void ble8_uart_isr( void )
- This function reads response bytes from the module and sets flag after each received byte.void ble8_send( uint8_t *tx_data, uint8_t term_char )
- This function allows user to transmit data and send commands to the module.Examples description
The application is composed of three sections :
void applicationTask()
{
rx_data = UART_Rdy_Ptr();
if (rx_data != _RX_NOT_READY)
{
rx_data = UART_Rd_Ptr();
checkRX();
}
if (start_timer == 1)
{
timer_cnt++;
}
logRsp();
Delay_us( 1 );
}
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.