{"action":"closed","issue":{"url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/560","repository_url":"https://api.github.com/repos/nkolban/esp32-snippets","labels_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/560/labels{/name}","comments_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/560/comments","events_url":"https://api.github.com/repos/nkolban/esp32-snippets/issues/560/events","html_url":"https://github.com/nkolban/esp32-snippets/issues/560","id":331653891,"node_id":"MDU6SXNzdWUzMzE2NTM4OTE=","number":560,"title":"BLE SampleClient can't get services from Server","user":{"login":"vuanh-minh","id":34150116,"node_id":"MDQ6VXNlcjM0MTUwMTE2","avatar_url":"https://avatars2.githubusercontent.com/u/34150116?v=4","gravatar_id":"","url":"https://api.github.com/users/vuanh-minh","html_url":"https://github.com/vuanh-minh","followers_url":"https://api.github.com/users/vuanh-minh/followers","following_url":"https://api.github.com/users/vuanh-minh/following{/other_user}","gists_url":"https://api.github.com/users/vuanh-minh/gists{/gist_id}","starred_url":"https://api.github.com/users/vuanh-minh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vuanh-minh/subscriptions","organizations_url":"https://api.github.com/users/vuanh-minh/orgs","repos_url":"https://api.github.com/users/vuanh-minh/repos","events_url":"https://api.github.com/users/vuanh-minh/events{/privacy}","received_events_url":"https://api.github.com/users/vuanh-minh/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-12T16:03:24Z","updated_at":"2018-06-26T15:22:41Z","closed_at":"2018-06-26T15:22:41Z","author_association":"NONE","body":"Hi,\r\nAfter updated esp-idf, and esp32-snippets, i got some problem with SampleClient after it connects to the Server. The connexion is successful, but for some reasons, the client can't get the service, and wait the semaphore : SearchCmplEvt. How can i resolve this problem ? @nkolban \r\n\r\n```\r\nD (3657) BLEUtils: Received a GAP event: ESP_GAP_BLE_SCAN_STOP_COMPLETE_EVT\r\nD (3664) BLEUtils: [status: 0]\r\nD (3667) Task: >> runTask: taskName=Task\r\nD (3671) BLEDevice: >> createClient\r\nD (3675) BLEDevice: << createClient\r\nD (3678) BLEClient: >> connect(30:ae:a4:80:87:16)\r\nD (3683) FreeRTOS: Semaphore taking: name: RegEvt (0x3ffd9ca4), owner: <N/A> for connect\r\nD (3691) FreeRTOS: Semaphore taken:  name: RegEvt (0x3ffd9ca4), owner: connect\r\nD (3698) BLEClient: >> clearServices\r\nD (3702) BLEClient: << clearServices\r\nD (3706) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_REG_EVT\r\nD (3713) BLEUtils: GATT Event: ESP_GATTC_REG_EVT\r\nD (3718) BLEUtils: [status: ESP_GATT_OK, app_id: 0x0]\r\nV (3723) FreeRTOS: Semaphore giving: name: RegEvt (0x3ffd9ca4), owner: connect\r\nV (3730) FreeRTOS: >> wait: Semaphore waiting: name: RegEvt (0x3ffd9ca4), owner: <N/A> for connect\r\nV (3739) FreeRTOS: << wait: Semaphore released: name: RegEvt (0x3ffd9ca4), owner: connect\r\nD (3748) FreeRTOS: Semaphore taking: name: OpenEvt (0x3ffdac40), owner: <N/A> for connect\r\nD (3756) FreeRTOS: Semaphore taken:  name: OpenEvt (0x3ffdac40), owner: connect\r\nV (3766) FreeRTOS: >> wait: Semaphore waiting: name: OpenEvt (0x3ffdac40), owner: connect for connect\r\nV (3772) FreeRTOS: << wait: Semaphore released: name: ScanEnd (0x3ffd2bac), owner: start\r\nD (3781) BLEScan: << start()\r\nI (3784) SampleClient: Scanning finished\r\nD (3903) nvs: nvs_open_from_partition gatt_a8316ee7 1\r\nD (3903) nvs: nvs_get_str_or_blob gattc_cache_key\r\nD (3904) nvs: nvs_get_str_or_blob gattc_cache_key\r\nD (3907) nvs: nvs_get_str_or_blob gattc_cache_key\r\nD (3912) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_CONNECT_EVT\r\nD (3919) BLEUtils: GATT Event: ESP_GATTC_CONNECT_EVT\r\nD (3924) BLEUtils: [conn_id: 0, remote_bda: 30:ae:a4:80:87:16]\r\nD (3931) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_OPEN_EVT\r\nD (3938) BLEUtils: GATT Event: ESP_GATTC_OPEN_EVT\r\nD (3943) BLEUtils: [status: ESP_GATT_OK, conn_id: 0, remote_bda: 30:ae:a4:80:87:16, mtu: 23]\r\nV (3951) FreeRTOS: Semaphore giving: name: OpenEvt (0x3ffdac40), owner: connect\r\nV (3959) FreeRTOS: << wait: Semaphore released: name: OpenEvt (0x3ffdac40), owner: connect\r\nD (3967) BLEClient: << connect(), rc=1\r\nD (3971) BLEClient: >> getService: uuid: 91bad492-b950-4226-aa2b-4ede9fa42f59\r\nD (3978) BLEClient: >> getServices\r\nD (3981) BLEClient: >> clearServices\r\nD (3985) BLEClient: << clearServices\r\nD (3989) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_SEARCH_RES_EVT\r\nD (3997) BLEUtils: GATT Event: ESP_GATTC_SEARCH_RES_EVT\r\nD (4002) BLEUtils: [conn_id: 0, start_handle: 1 0x01, end_handle: 5 0x05, srvc_id: uuid: 00001801-0000-1000-8000-00805f9b34fb, inst_id: 1\r\nD (4015) BLERemoteService: >> BLERemoteService()\r\nD (4019) BLERemoteService: << BLERemoteService()\r\nD (4024) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_SEARCH_RES_EVT\r\nD (4032) BLEUtils: GATT Event: ESP_GATTC_SEARCH_RES_EVT\r\nD (4037) BLEUtils: [conn_id: 0, start_handle: 20 0x14, end_handle: 28 0x1c, srvc_id: uuid: 00001800-0000-1000-8000-00805f9b34fb, inst_id: 20\r\nD (4050) BLERemoteService: >> BLERemoteService()\r\nD (4055) BLERemoteService: << BLERemoteService()\r\nD (4060) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_SEARCH_RES_EVT\r\nD (4068) BLEUtils: GATT Event: ESP_GATTC_SEARCH_RES_EVT\r\nD (4073) BLEUtils: [conn_id: 0, start_handle: 40 0x28, end_handle: 65535 0xffff, srvc_id: uuid: eb65b6c6-fec3-4ed1-a6fc-9eff755a416c, inst_id: 40\r\nD (4086) BLERemoteService: >> BLERemoteService()\r\nD (4091) BLERemoteService: << BLERemoteService()\r\nD (4096) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_SEARCH_CMPL_EVT\r\nD (4104) BLEUtils: GATT Event: ESP_GATTC_SEARCH_CMPL_EVT\r\nD (4109) BLEUtils: [status: ESP_GATT_OK, conn_id: 0]\r\nV (4114) FreeRTOS: Semaphore giving: name: SearchCmplEvt (0x3ffd9d64), owner: <N/A>\r\nD (4122) FreeRTOS: Semaphore taking: name: SearchCmplEvt (0x3ffd9d64), owner: <N/A> for getServices\r\nD (4131) FreeRTOS: Semaphore taken:  name: SearchCmplEvt (0x3ffd9d64), owner: getServices\r\nV (4139) FreeRTOS: >> wait: Semaphore waiting: name: SearchCmplEvt (0x3ffd9d64), owner: getServices for getServices\r\nW (607456) BT_APPL: bta_gattc_conn_cback() - cif=3 connected=0 conn_id=3 reason=0x0008\r\nD (607458) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_DISCONNECT_EVT\r\nD (607462) BLEUtils: GATT Event: ESP_GATTC_DISCONNECT_EVT\r\nD (607468) BLEUtils: [reason: ESP_GATT_CONN_TIMEOUT, conn_id: 0, remote_bda: 30:ae:a4:80:87:16]\r\nD (607477) BLEDevice: gattClientEventHandler [esp_gatt_if: 3] ... ESP_GATTC_CLOSE_EVT\r\nD (607484) BLEUtils: GATT Event: ESP_GATTC_CLOSE_EVT\r\nD (607489) BLEUtils: [status: ESP_GATT_OK, reason:ESP_GATT_CONN_TIMEOUT, conn_id: 0]\r\n\r\n```"}}
{"actor":{"display_login":"vuanh-minh"}}