/* Function for handling the BLE_GAP_EVT_CONNECTED event from the S110 SoftDevice.  */
static void on_connect(ble_nus_t *p_nus, ble_evt_t *p_ble_evt)
/* Function for handling the BLE_GAP_EVT_CONNECTED event from the S110 SoftDevice.  */
static void on_connect(ble_nus_t *p_nus, ble_evt_t *p_ble_evt)
{
    p_nus->conn_handle = p_ble_evt->evt.gap_evt.conn_handle;
}