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

Connect to GATT peripheral

disconnect

Disconnect from GATT peripheral

discover

Discover GATT services and characteristics

match

Match a value for a subscribed characteristic

read

Read a GATT characteristic

sub

Subscribe to notifications from a GATT characteristic

write

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.