Skip to content

bluetooth.btcommon.BluetoothError: [Errno 111] Connection refused #74

@manel00

Description

@manel00

Hello,

I've already installed everything but it gives me this error:

Traceback (most recent call last):
  File "/home/manel/Documentos/bluetooth_battery.py", line 166, in <module>
    main()
  File "/home/manel/Documentos/bluetooth_battery.py", line 163, in main
    print("Battery level for {} is {}".format(device, str(query)))
  File "/home/manel/Documentos/bluetooth_battery.py", line 93, in __str__
    return "{:.0%}".format(self._perform_query() / 100)
  File "/home/manel/Documentos/bluetooth_battery.py", line 101, in _perform_query
    sock.connect(self._bt_settings)
  File "<string>", line 5, in connect
bluetooth.btcommon.BluetoothError: [Errno 111] Connection refused

I am adding the parameter when i am executing the py file **

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions