gatt-python icon indicating copy to clipboard operation
gatt-python copied to clipboard

mac addresses appear to be case sensitive (trivial)

Open eichin opened this issue 4 years ago • 0 comments

After cut&pasting my BLE device address from gattool where it's all upper case, I got

[A4:C1:38:CE:0D:F5] Connection failed: Device does not exist, check adapter name and MAC address.

After running ./gattctl.py --discover I noticed the output was all lower case, so on a hunch, I downcased it and got

[a4:c1:38:ce:0d:f5] Connected

(yay!) I just suggest calling it out in the example, or throwing in a .lower() and avoiding the issue, since other (linux, at least) tools are case-insensitive here.

eichin avatar Mar 12 '21 22:03 eichin