Hello Guys,
I'm implementing the ble_app_hids_mouse. I can pair with Windows, I see the mouse arrow moving around etc everything looks good except when I tell Windows to disconnect.
Upon disconnection I'm expecting the nRF51822 to resume advertisement below is my code:
case BLE_GAP_EVT_DISCONNECTED:
m_conn_handle = BLE_CONN_HANDLE_INVALID;
m_advertising_mode = BLE_DIRECTED_ADV;
m_direct_adv_cnt = APP_DIRECTED_ADV_TIMEOUT;
radio_connected = BLE_GAP_EVT_DISCONNECTED;
mouse_timer_stop();
advertising_start();
break;
I put a break point in there and I saw that the event is being triggered but no advertisement. Sometimes, I see that err_code = sd_ble_gap_adv_start(&adv_params) is failing with error_code == 7.
Any ideas about what's is happening? It is the only thing that is holding me up. I don't have visibility inside of sd_ble_gap_adv_start() to know what's wrong.
Thanks, Gilson