wble-connect: Connect to a BLE device

wble-connect initiates a connection to a remote BLE device and is intended to be used in a packet processing chain. Once connected, it relays any PDU from the device to any chained WHAD tool and any PDU from a chained tool to the device.

Usage

wble-connect [OPTIONS] TARGET_BD_ADDRESS

Command-line options

wble-connect supports the following options:

  • --interface (-i): specifies the WHAD interface to use to connect to the target device

  • --no-color: disables colors in output

  • --spoof-public: if supported, sets WHAD adapter’s BD address to the specified public address

  • --spoof-random: if supported, sets WHAD adapter’s BD address to the specified random address

  • --random (-r): if set, consider the target device BD address is random (default: public)

It also supports the following debugging options:

  • --log: if set, specifies the level of logging (must be one of the following, from the less verbose to the more verbose level): error, warn, info, debug

  • --log-file FILE: if set, logging will output messages to the specified file FILE instead of using standard output

Example usage

The following example shows a pretty simple usage of wble-connect combined with wble-central:

# wble-connect -i hci0 -r 40:d8:81:a1:a7:82 | wble-central read 3
00000000: 4A 61 62 72 61 20 45 6C  69 74 65 20 37 35 74     Jabra Elite 75t