I have set up a gadget (esp32 device with btstack lib) and paired it with my Echo device . Now I am trying to address reconnecting when the device gets rebooted. Based on the documentation, I wrote code to run a sdp client query to a hardcoded Echo address.
However, when the sdp client query tries to create a l2cap connection to the Echo, the connection times out:
[00:00:01.134] LOG -- l2cap.c.1885: L2CAP_CREATE_CHANNEL addr 00:BB:3A:EF:88:8D psm 0x1 mtu 1691 -> local mtu 1691 [00:00:01.144] LOG -- l2cap.c.1864: channel 0x3ffd9f74, local_cid 0x0040 [00:00:01.153] LOG -- hci.c.3762: Create_connection to 00:BB:3A:EF:88:8D [00:00:01.159] LOG -- hci.c.186: create_connection_for_addr 00:BB:3A:EF:88:8D, type ff [00:00:01.167] LOG -- hci.c.3774: conn state 0 [00:00:01.171] LOG -- hci.c.2016: command status (create connection), status 0, connection 0x3ffda76c, addr 00:BB:3A:EF:88:8D, type ff [00:00:34.884] LOG -- hci.c.2100: Connection_complete (status=34) 00:BB:3A:EF:88:8D [00:00:34.884] LOG -- hci.c.1829: Outgoing connection to 00:BB:3A:EF:88:8D failed [00:00:34.891] LOG -- l2cap.c.905: L2CAP_EVENT_CHANNEL_OPENED status 0x22 addr 00:BB:3A:EF:88:8D handle 0xffff psm 0x1 local_cid 0x40 remote_cid 0x0 local_mtu 1691, remote_mtu 672, flush_timeout 0 [00:00:34.908] LOG -- sdp_client.c.448: SDP Client Connection failed, status 0x22. [00:00:34.924] LOG -- l2cap.c.1100: l2cap_stop_rtx for local cid 0x40
Are there any suggestions for why the sdp client query would fail in this way? Any more detailed information on the reconnect requirements that I may have missed?