This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

RSSI Start problem NRF_ERROR_SOFTDEVICE_NOT_ENABLED

Hello. I want RSSI check. so added source code as below.

test_rssi_start = sd_ble_gap_rssi_start(m_conn_handle,BLE_GAP_RSSI_THRESHOLD_INVALID,0x00); if(test_rssi_start==NRF_SUCCESS){ app_uart_put(0x53); }

but, rssi_start NRF_SUCCESS is fail. error occur NRF_ERROR_SOFTDEVICE_NOT_ENABLED. Please solve the above problem and give me rssi example. thank you.

Parents
  • thank you for your support. I wrong check only 8byte. I checked 16byte data occur error BLE_ERROR_INVALID_CONN_HANDLE. I modify source code from m_conn_handle to p_db_discovery->conn_handle sd_ble_gap_rssi_start(m_conn_handle,BLE_GAP_RSSI_THRESHOLD_INVALID,0x00); -> sd_ble_gap_rssi_start(p_db_discovery->conn_handle,BLE_GAP_RSSI_THRESHOLD_INVALID,0x00); NRF_SUCCESS is OK. but, not move BLE_GAP_EVT_RSSI_CHANGED case. please confirm it.

Reply
  • thank you for your support. I wrong check only 8byte. I checked 16byte data occur error BLE_ERROR_INVALID_CONN_HANDLE. I modify source code from m_conn_handle to p_db_discovery->conn_handle sd_ble_gap_rssi_start(m_conn_handle,BLE_GAP_RSSI_THRESHOLD_INVALID,0x00); -> sd_ble_gap_rssi_start(p_db_discovery->conn_handle,BLE_GAP_RSSI_THRESHOLD_INVALID,0x00); NRF_SUCCESS is OK. but, not move BLE_GAP_EVT_RSSI_CHANGED case. please confirm it.

Children
No Data
Related