Hello there,
I'm currently using nrf52832 with s132 and sdk 0.9.2, based on the 'ble_app_uart' example and keil5. I'd like to use 'ble_nus_string_send' function to send a string to peer, but I always encounter 'p_nus->conn_handle == BLE_CONN_HANDLE_INVALID' and 'p_nus->is_notification_enabled = false'. earlier I initialized the followings:
> static void ble_evt_dispatch(ble_evt_t
> * p_ble_evt) { ble_conn_params_on_ble_evt(p_ble_evt);
> ble_nus_on_ble_evt(&m_nus,
> p_ble_evt); on_ble_evt(p_ble_evt);
> }
>
> ble_stack_init(); gap_params_init();
> services_init(); advertising_init();
> conn_params_init(); sec_params_init();
and my 'on_ble_evt(ble_evt_t * p_ble_evt)' function indicates 'BLE_GAP_EVT_CONNECTED' event and thus: 'm_conn_handle = p_ble_evt->evt.gap_evt.conn_handle;'
what could have changed the update of the event while using 'ble_nus_string_send'? what could be missing? my goal is to s