But on Windows it does not connect.
To learn from example gatt_server I added a function to ESP_LOGW all events in gatts event handler
Short end of this story, its not working
This is the log, any idea ?
Code: Select all
I (544) GATTS_DEMO: REGISTER_APP_EVT, status 0, app_id 0
I (554) GATTS_DEMO: CREATE_SERVICE_EVT, status 0, service_handle 40
I (554) GATTS_DEMO: SERVICE_START_EVT, status 0, service_handle 40
I (554) GATTS_DEMO: ADD_CHAR_EVT, status 0, attr_handle 42, service_handle 40
I (564) GATTS_DEMO: the gatts demo char length = 3
I (574) GATTS_DEMO: prf_char[0] =11
I (574) GATTS_DEMO: prf_char[1] =22
I (584) GATTS_DEMO: prf_char[2] =33
I (584) GATTS_DEMO: ADD_DESCR_EVT, status 0, attr_handle 43, service_handle 40
I (594) GATTS_DEMO: REGISTER_APP_EVT, status 0, app_id 1
I (604) GATTS_DEMO: CREATE_SERVICE_EVT, status 0, service_handle 44
I (604) GATTS_DEMO: SERVICE_START_EVT, status 0, service_handle 44
I (614) GATTS_DEMO: ADD_CHAR_EVT, status 0, attr_handle 46, service_handle 44
I (624) GATTS_DEMO: ADD_DESCR_EVT, status 0, attr_handle 47, service_handle 44
I (94324) UTILS: Event GATTS:ESP_GATTS_CONNECT_EVT gatts_if:3
I (94324) GATTS_DEMO: ESP_GATTS_CONNECT_EVT, conn_id 0, remote 58:00:e3:68:39:3c:
I (94334) UTILS: Event GATTS:ESP_GATTS_CONNECT_EVT gatts_if:4
I (94334) GATTS_DEMO: CONNECT_EVT, conn_id 0, remote 58:00:e3:68:39:3c:
I (95104) UTILS: Event GATTS:ESP_GATTS_MTU_EVT gatts_if:3
I (95114) GATTS_DEMO: ESP_GATTS_MTU_EVT, MTU 500
I (95114) UTILS: Event GATTS:ESP_GATTS_MTU_EVT gatts_if:4
I (95114) GATTS_DEMO: ESP_GATTS_MTU_EVT, MTU 500
I (95124) UTILS: Event GAP:ESP_GAP_BLE_SEC_REQ_EVT
I (95704) UTILS: Event GAP:ESP_GAP_BLE_UPDATE_CONN_PARAMS_EVT
I (95704) GATTS_DEMO: update connetion params status = 0, min_int = 16, max_int = 32,conn_int = 30,latency = 0, timeout = 400
E (124314) BT: L2CA_EnableUpdateBleConnParams - unknown BD_ADDR 5800e368393c
E (124324) BT: L2CA_RemoveFixedChnl() CID: 0x0006 BDA: 5800e368393c not connected
E (124324) BT: Device not found
E (124324) BT: BTA got unregistered event id 31
E (124334) BT: BTA got unregistered event id 31
I (124334) UTILS: Event GATTS:ESP_GATTS_DISCONNECT_EVT gatts_if:3
I (124344) GATTS_DEMO: ESP_GATTS_DISCONNECT_EVT
I (124354) UTILS: Event GATTS:ESP_GATTS_DISCONNECT_EVT gatts_if:4