GATT_CLIENT example

AdySan
Posts: 2
Joined: Sun Jan 03, 2016 5:44 pm

GATT_CLIENT example

Postby AdySan » Tue Jan 10, 2017 6:22 am

Sorry for the rather noob question, can someone give a short explanation of how the GATT_CLIENT example in esp-idf is intended to be used?

The GATT_SERVER is straightforward, I can run it, connect to it from a phone, read/write to the two services which are advertised. But I'm not sure if/how the GATT_CLIENT example is meant to make a connection to the GATT_SERVER? It does scan and find the GATT_SERVER, but how does one trigger it to make a connection and read/write chars?

[UPDATE]

Looking at the serial debug, I see the following btc post failed error

Code: Select all

.[0m
.[0;32mI (44607) GATTC_DEMO: Searched Device Name Len 14
.[0m
.[0;32mI (44617) GATTC_DEMO: E.[0m
.[0;32mI (44617) GATTC_DEMO: S.[0m
.[0;32mI (44627) GATTC_DEMO: P.[0m
.[0;32mI (44627) GATTC_DEMO: _.[0m
.[0;32mI (44627) GATTC_DEMO: G.[0m
.[0;32mI (44637) GATTC_DEMO: A.[0m
.[0;32mI (44637) GATTC_DEMO: T.[0m
.[0;32mI (44637) GATTC_DEMO: T.[0m
.[0;32mI (44637) GATTC_DEMO: S.[0m
.[0;32mI (44647) GATTC_DEMO: _.[0m
.[0;32mI (44647) GATTC_DEMO: D.[0m
.[0;32mI (44647) GATTC_DEMO: E.[0m
.[0;32mI (44657) GATTC_DEMO: M.[0m
.[0;32mI (44657) GATTC_DEMO: O.[0m
.[0;32mI (44657) GATTC_DEMO: 24:.[0m
.[0;32mI (44667) GATTC_DEMO: a:.[0m
.[0;32mI (44667) GATTC_DEMO: c4:.[0m
.[0;32mI (44667) GATTC_DEMO: 0:.[0m
.[0;32mI (44677) GATTC_DEMO: a2:.[0m
.[0;32mI (44677) GATTC_DEMO: 56:.[0m
.[0;32mI (44677) GATTC_DEMO: 
.[0m
.[0;32mI (44687) GATTC_DEMO: Searched Device Name Len 14
.[0m
.[0;32mI (44687) GATTC_DEMO: E.[0m
.[0;31mE (44697) BT: Btc Post failed
.[0m
.[0;32mI (44697) GATTC_DEMO: S.[0m
.[0;32mI (44697) GATTC_DEMO: P.[0m
.[0;31mE (44707) BT: Btc Post failed
.[0m
.[0;32mI (44707) GATTC_DEMO: _.[0m
.[0;32mI (44707) GATTC_DEMO: G.[0m
.[0;32mI (44717) GATTC_DEMO: A.[0m
.[0;32mI (44717) GATTC_DEMO: T.[0m
.[0;32mI (44717) GATTC_DEMO: T.[0m
.[0;32mI (44717) GATTC_DEMO: S.[0m
.[0;32mI (44727) GATTC_DEMO: _.[0m
.[0;32mI (44727) GATTC_DEMO: D.[0m
.[0;32mI (44727) GATTC_DEMO: E.[0m
.[0;32mI (44737) GATTC_DEMO: M.[0m
.[0;32mI (44737) GATTC_DEMO: O.[0m
.[0;32mI (44737) GATTC_DEMO: 60:.[0m
.[0;32


Who is online

Users browsing this forum: No registered users and 230 guests