GATT Server/Client

ryuhhh
Posts: 7
Joined: Sun Dec 18, 2016 6:31 am

GATT Server/Client

Postby ryuhhh » Tue Jan 03, 2017 5:35 am

Hi, I have a simple question.

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

User avatar
kolban
Posts: 1683
Joined: Mon Nov 16, 2015 4:43 pm
Location: Texas, USA

Re: GATT Server/Client

Postby kolban » Tue Jan 03, 2017 5:47 am

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
Free book on ESP32 available here: https://leanpub.com/kolban-ESP32

Who is online

Users browsing this forum: No registered users and 220 guests