Closed ToastTO closed 1 year ago
Hey @ToastTO, thanks for reaching out.
bluetooth_enabled
is also a class methods, not an instance method. The correct code would be:
adapters = simplepyble.Adapter.get_adapters()
BLE_enable = simplepyble.Adapter.bluetooth_enabled()
When I use the this function bluetooth_enabled, it shows me this error... ` Traceback (most recent call last): File "c:\Users\823ka\OneDrive\Documents\education app\simplepy.py", line 12, in
BLE_enable = adapter.bluetooth_enabled()
TypeError: bluetooth_enabled(): incompatible function arguments. The following argument types are supported:
BLE_enable = adapter.bluetooth_enabled() print(BLE_enable)