!
Example
6.2.20. AT+BLEGATTSCHAR—GATTS Discovers Characteristics
Command
s
Response
Parameter
s
Example
6.2.21. AT+BLEGATTSNTFY—GATTS Notifies of Characteristics
Commands
Response
Espressif
AT+BLEINIT=2 // role: server
AT+BLEGATTSSRVCRE
AT+BLEGATTSSRV?
Query Command:
AT+BLEGATTSCHAR?
Function: GATTS characteristics discovery.
// when showing a characteristic, it will be as:
+BLEGATTSCHAR:"char",<srv_index>,<char_index>,<char_uuid>,<char_prop>
// when showing a descriptor, it will be as:
+BLEGATTSCHAR:"desc",<srv_index>,<char_index>,<desc_index>
OK
<srv_index>: service's index starting from 1
<char_index>: characteristic's index starting from 1
<char_uuid>: characteristic's UUID
<char_prop>: characteristic's properties
<desc_index>: descriptor's index
<desc_uuid>: descriptor's UUID
AT+BLEINIT=2 // role: server
AT+BLEGATTSSRVCRE
AT+BLEGATTSSRVSTART
AT+BLEGATTSCHAR?
Set Command:
AT+BLEGATTSNTFY=<conn_index>,<srv_index>,<char_index>,<length>
Function: GATTS notifies of its characteristics.
wrap return
>
after the command. Begin receiving serial data. When the requirement of data
length, determined by <length>, is met, the notification starts.
If the data transmission is successful, the system returns:
OK
52 97
!
/!
6. BLE-Related AT Commands
2019.06
Need help?
Do you have a question about the ESP32 and is the answer not in the manual?
Questions and answers