Could you give me an example how to restart advertising after timeout.
thank.
sorry, i need on the button event to restart advertising.
Could you give me an example how to restart advertising after timeout.
thank.
sorry, i need on the button event to restart advertising.
Then in your hids_mouse example you probably using, in bsp_event_handler()
under lets say button 0 have:
case BSP_EVENT_KEY_0:
if (m_conn_handle == BLE_CONN_HANDLE_INVALID)
{
advertising_start();
}
break;
Use any button, just make sure it is defined properly
Then in your hids_mouse example you probably using, in bsp_event_handler()
under lets say button 0 have:
case BSP_EVENT_KEY_0:
if (m_conn_handle == BLE_CONN_HANDLE_INVALID)
{
advertising_start();
}
break;
Use any button, just make sure it is defined properly