- Short range radio modules
- Positioning chips and modules
u-blox Products
- Product selector
- Previous generations
- Contact sales
Find products
- Product documentation
Documentation
AT Command | Description |
|---|---|
GATT Primary Services Discover | |
GATT Primary Services Discover by UUID | |
GATT Service Characteristics Discover | |
GATT Characteristic Descriptors Discover | |
GATT Read | |
GATT Read characteristic by UUID | |
GATT Write | |
GATT Client Configuration Write | |
GATT Write with No Response | |
GATT Write long |
AT Command | Description |
|---|---|
AT+UBTGPSD=<conn_handle> | Discover all primary services on the remote device. |
Response | Description |
|---|---|
+UBTGPSD:<conn_handle>,<start_handle>,<end_handle>,<uuid> | This response is sent for each service found. |
Parameter | Type | Description |
|---|---|---|
conn_handle | integer | Bluetooth Low Energy connection handle. |
start_handle | integer | Service start handle. |
end_handle | integer | Service end handle. |
uuid | byte_array | UUID of attribute. Either 16-bit or 128-bit. |
AT Command | Description |
|---|---|
AT+UBTGPSDU=<conn_handle>,<uuid> | Start discovery. |
Response | Description |
|---|---|
+UBTGPSDU:<conn_handle>,<start_handle>,<end_handle> | This response is sent for each service found. |
Parameter | Type | Description |
|---|---|---|
conn_handle | integer | Bluetooth Low Energy connection handle. |
uuid | byte_array | UUID of attribute. Either 16-bit or 128-bit. |
start_handle | integer | Service start handle. |
end_handle | integer | Service end handle. |
AT Command | Description |
|---|---|
AT+UBTGSCD=<conn_handle>,<start>,<end> | Discover all characteristics of a service. |
Response | Description |
|---|---|
+UBTGSCD:<conn_handle>,<attr_handle>,<properties>,<value_handle>,<uuid> | This response is sent for each characteristic found. |
Parameter | Type | Description |
|---|---|---|
start | integer | Service start handle. |
end | integer | Service end handle. |
attr_handle | integer | Attribute handle of the characteristic |
properties | byte_array | Bit mask describing the properties of the characteristic |
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
uuid | byte_array | UUID of attribute. Either 16-bit or 128-bit. |
AT Command | Description |
|---|---|
AT+UBTGCDD=<conn_handle>,<value_handle>,<characteristic_end_handle> | Discover all descriptors of a characteristic. |
Response | Description |
|---|---|
+UBTGCDD:<conn_handle>,<char_handle>,<desc_handle>,<uuid> | This response is sent for each descriptor found. |
Parameter | Type | Description |
|---|---|---|
char_handle | integer | Characteristic handle. |
characteristic_end_handle | integer | End handle of characteristic to which descriptor discovery is being performed. |
desc_handle | integer | Descriptor handle. |
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
uuid | byte_array | UUID of attribute. Either 16-bit or 128-bit. |
AT Command | Description |
|---|---|
AT+UBTGR=<conn_handle>,<value_handle> | Reads the characteristic; all bytes included. |
Response | Description |
|---|---|
+UBTGR:<conn_handle>,<value_handle>,<hex_data> | Successful read response. |
Parameter | Type | Description |
|---|---|---|
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
hex_data | byte_array | Characteristic data in hexadecimal form. For example, 070809AABBCC |
AT Command | Description |
|---|---|
AT+UBTGRU=<conn_handle>,<start>,<end>,<uuid> | Read all the characteristics by UUID. It will read all the bytes in each characteristic. |
Response | Description |
|---|---|
+UBTGRU:<conn_handle>,<value_handle>,<hex_data> | Successful read response. |
Parameter | Type | Description |
|---|---|---|
start | integer | Start handle. |
end | integer | End handle. |
conn_handle | integer | Bluetooth Low Energy connection handle. |
uuid | byte_array | UUID of attribute. Either 16-bit or 128-bit. |
value_handle | integer | Attribute handle of the characteristic value. |
hex_data | byte_array | Characteristic data in hexadecimal form. For example, 070809AABBCC |
AT Command | Description |
|---|---|
AT+UBTGW=<conn_handle>,<value_handle>,<hex_data> | Write the characteristic value. |
Parameter | Type | Description |
|---|---|---|
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
hex_data | byte_array | Characteristic data in hexadecimal form. For example, 070809AABBCC |
AT Command | Description |
|---|---|
AT+UBTGCCW=<conn_handle>,<desc_handle>,<config> | Writes the client characteristic configuration. |
Parameter | Type | Description |
|---|---|---|
desc_handle | integer | Descriptor handle. |
config | enumerator | Valid values: 0: None 1: Enable notifications 2: Enable indications 3: Enable notifications and indications |
conn_handle | integer | Bluetooth Low Energy connection handle. |
AT Command | Description |
|---|---|
AT+UBTGWNR=<conn_handle>,<value_handle>,<hex_data> | Write characteristic. |
Parameter | Type | Description |
|---|---|---|
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
hex_data | byte_array | Characteristic data in hexadecimal form. For example, 070809AABBCC |
AT Command | Description |
|---|---|
AT+UBTGWL=<conn_handle>,<value_handle>,<hex_data>,<reliable>,<flag>,<offset> | Write long characteristic. |
Parameter | Type | Description |
|---|---|---|
reliable | enumerator | Valid values: 0: Not reliable 1: Reliable |
flag | enumerator | Valid values: 0: Final data 1: More data 2: Cancel |
offset | integer | |
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
hex_data | byte_array | Characteristic data in hexadecimal form. For example, 070809AABBCC |
Unsolicited Response Code | Description |
|---|---|
Event GATT Client Notification | |
Event GATT Client Indication |
+UEBTGCN:<conn_handle>,<value_handle>,<hex_data>Parameter | Type | Description |
|---|---|---|
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
hex_data | byte_array | Characteristic data in hexadecimal form. For example, 070809AABBCC |
+UEBTGCI:<conn_handle>,<value_handle>,<hex_data>Parameter | Type | Description |
|---|---|---|
conn_handle | integer | Bluetooth Low Energy connection handle. |
value_handle | integer | Attribute handle of the characteristic value. |
hex_data | byte_array | Characteristic data in hexadecimal form. For example, 070809AABBCC |