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

nRF52832 disconnecting from android device

I am trying to connect the device to android phone both on nRF connect as well as normal pairing. Both seems to not work.

I get this log from the device: on_ble_evt: BLE_GAP_EVT_DISCONNECTED. Reason: 0x2a

Log from nRF connect UART: ERROR 14 (0xe): Unknown (14)

Please suggest what is the error

Parents Reply
  • To fix this I restarted the 'advertising_start()' service when it got disconnect like so:

    case BLE_GAP_EVT_DISCONNECTED:
    {
    bool erase_bonds;
    NRF_LOG_INFO("Disconnected.");
    advertising_start(erase_bonds); //added by AUAK
    // LED indication will be changed when advertising starts.
    // m_conn_handle = BLE_CONN_HANDLE_INVALID; //added by AUAK
    break;
    }

    This restarts the service once it is disconnected.

Children
No Data
Related