ble gatt - GATT-level BLE Tests
Perform GATT-level BLE interactions with the DUT.
Usage:
- command: ble gatt connect addr:<address> [<timeout> [<minRSSI>]]
[retry: <retryCount>]
- command: ble gatt connect name:<name> [<timeout> [<minRSSI>]]
[retry: <retryCount>]
- command: ble gatt disconnect
[retry: <retryCount>]
- command: ble gatt discover
[retry: <retryCount>]
- command: ble gatt match char:<charUUID> <matchHex>
[retry: <retryCount>]
- command: ble gatt read char:<charUUID> <matchHex>
[retry: <retryCount>]
- command: ble gatt sub char:<charUUID>
[retry: <retryCount>]
- command: ble gatt write char:<charUUID> <valueHex>
[retry: <retryCount>]
Argument |
Description |
---|---|
name |
GAP name advertised by DUT. |
address |
BLE MAC address used by the DUT. |
timeout |
Timeout, in seconds |
minRSSI |
RSSI threshold (optional) |
|
Connect to GATT peripheral |
|
Disconnect from GATT peripheral |
|
Discover GATT services and characteristics |
|
Match a value for a subscribed characteristic |
|
Read a GATT characteristic |
|
Subscribe to notifications from a GATT characteristic |
|
Write to a GATT characteristic |
retryCount |
Number of times to retry the test step (optional) |
Examples
Note
Using the ble gatt
command on a PLT-300A requires a supported
BLE test dongle.