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: 2021-09-06
Package Version: 1.0.0.0
mikroSDK Library: 1.0.0.0
Category: BT/BLE
Downloaded: 2184 times
Followed by: 1 user
License: MIT license
BLE 6 Click is a Bluetooth low energy system-on-chip application processor certified module, compliant with BT specifications v5.0 and BQE qualified. The featured BlueNRG-M2 module developed by STMicroelectronics supports multiple roles simultaneously and can act at the same time as Bluetooth master and slave device.
Do you want to subscribe in order to receive notifications regarding "BLE 6 click" changes.
Do you want to unsubscribe in order to stop receiving notifications regarding "BLE 6 click" changes.
Do you want to report abuse regarding "BLE 6 click".
Library Description
The library covers all the necessary functions to control BLE 6 click board. Library performs a standard UART interface communication.
Key functions:
uint8_t ble6_read_byte( void )
- Read Single Byte.void ble6_write_byte ( uint8_t input )
- Write Single Byte.void ble6_send_command ( uint8_t *tx_data, uint8_t n_bytes )
- Send command function.Examples description
The application is composed of three sections :
void application_task ( )
{
ble6_event_handler( );
while ( device_connected_flag )
{
if ( ble6_strncmp( &rx_response[ 0 ],&hci_le_serverwrite_event[ 0 ], 1 )
== 0 )
{
ble6_response_handler( );
}
}
}
Additional Functions :
void ble6_handler ( )
- Default handler.void ble6_connect_handler ( )
- Connect handler.void ble6_response_handler ( )
- Response handler.void ble6_event_handler ( )
- Event handler.void ble6_local_version_info ( )
- Display local version information.void ble6_fw_details ( )
- Display FW details.void ble6_le_meta_event ( )
- Meta event.void ble6_aci_gap_init ( )
- Display ACI GAP init. information.void ble6_display_log ( )
- Display log.ble6_module_init ( )
- Module initialization.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.