if I set BLE_GAP_CONN_SEC_MODE_SET_OPEN, I can get data, but if I set BLE_GAP_CONN_SEC_MODE_SET_ENC_NO_MITM,
Three different even sequences happened, only one sequences has data, and device is bonded, first one: BLE_GAP_EVT_CONNECTED BLE_GAP_EVT_SEC_INFO_REQUEST BLE_GAP_EVT_DISCONNECTED
android side gets 133 error
second one: BLE_GAP_EVT_CONNECTED BLE_GAP_EVT_SEC_PARAMS_REQUEST BLE_GAP_EVT_CONN_SEC_UPDATE BLE_GAP_EVT_AUTH_STATUS BLE_GAP_EVT_DISCONNECTED
android side has no error, however no write finish event
third: BLE_GAP_EVT_CONNECTED BLE_GAP_EVT_SEC_INFO_REQUEST BLE_GAP_EVT_CONN_SEC_UPDATE BLE_GATTS_EVT_WRITE BLE_GAP_EVT_CONN_PARAM_UPDATE
and android side gets BluetoothLeService﹕ write done: 0 event.
only third one works.
if I restart android service, the first time, I always get third one. any better solutions?
the write is much slower, since in Android side bonding is setup, it is correct event sequence? for BLE_GAP_EVT_SEC_PARAMS_REQUEST BLE_GAP_EVT_CONN_SEC_UPDATE
to happen every time?