Hi,
In my current project HIDEmuKbd (using CC2541), I need to get central device RSSI value.
If using BLE 1.4.0 stack, I can read an RSSI value with a callback, but the RSSI value is not immediately (after pairing), the central device need to send some data (and it must be a central device).
If central device does not data packet transmission, the RSSI value will not change.
However, the use of old BLE 1.3.2 stack, without this situation.
How can i fix it ? in the BLE 1.4.0 version firmware.
Firmware like below:
uint16 rssi_read_rate = 500; GAPRole_SetParameter( GAPROLE_RSSI_READ_RATE, sizeof( uint16 ), &rssi_read_rate ); static gapRolesCBs_t PeripheralCBs = { peripheralStateNotificationCB, peripheralRSSINotificationCB, }; static void peripheralRSSINotificationCB( int8 newRSSI ) { // Get RSSI value }