Page 1 of 1

GATT Server/Client

Posted: Tue Jan 03, 2017 5:35 am
by ryuhhh
Hi, I have a simple question.

In GATT Server/Client example, what are the basic APIs to write/read data?

Re: GATT Server/Client

Posted: Tue Jan 03, 2017 5:47 am
by kolban
When one uses GATT, the notion is that there is a GATT server (usually in the peripheral) that hosts a "store" of data values known as "characteristics". From a GATT client we can then issue requests to write the value of a GATT characteristic or read the value of a GATT characteristic. The APIs that one uses to achieve those goals are:

* esp_ble_gattc_write_char

and

* esp_ble_gattc_read_char