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.
In on_ble_evt()
function add
case BLE_GAP_EVT_TIMEOUT:
if (p_ble_evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISING)
{
advertising_start();
}
break;
In on_ble_evt()
function add
case BLE_GAP_EVT_TIMEOUT:
if (p_ble_evt->evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISING)
{
advertising_start();
}
break;