when I press ctrl c:
^CTraceback (most recent call last):
File "nespresso2mqtt.py", line 153, in connectnespresso
device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 50, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 574, in char_write_handle
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 153, in connectnespresso
device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 49, in wrapper
raise NotConnectedError()
pygatt.exceptions.NotConnectedError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 153, in connectnespresso
device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 49, in wrapper
raise NotConnectedError()
pygatt.exceptions.NotConnectedError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 153, in connectnespresso
device.char_write(characteristic, bytearray(AUTH_CODE), wait_for_response=True) #your secret code
File "/usr/local/lib/python3.8/dist-packages/pygatt/device.py", line 121, in char_write
return self.char_write_handle(self.get_handle(uuid), value,
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 17, in wrapper
return func(self, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/device.py", line 48, in char_write_handle
self._backend.char_write_handle(self, handle, *args, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 49, in wrapper
raise NotConnectedError()
pygatt.exceptions.NotConnectedError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 157, in wait
raise NotificationTimeout()
pygatt.exceptions.NotificationTimeout: None
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 421, in connect
raise NotConnectedError(message)
pygatt.exceptions.NotConnectedError: Timed out connecting to c3:85:81:8c:9b:d7 after 5.0 seconds.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "nespresso2mqtt.py", line 176, in <module>
connectnespresso(device)
File "nespresso2mqtt.py", line 162, in connectnespresso
connectnespresso(device, tries+1) #resend write auth
File "nespresso2mqtt.py", line 162, in connectnespresso
connectnespresso(device, tries+1) #resend write auth
File "nespresso2mqtt.py", line 162, in connectnespresso
connectnespresso(device, tries+1) #resend write auth
File "nespresso2mqtt.py", line 165, in connectnespresso
connectble() #reconnect to machine
File "nespresso2mqtt.py", line 136, in connectble
connectble()
File "nespresso2mqtt.py", line 136, in connectble
connectble()
File "nespresso2mqtt.py", line 136, in connectble
connectble()
[Previous line repeated 9 more times]
File "nespresso2mqtt.py", line 132, in connectble
return adapter.connect(YOUR_DEVICE_ADDRESS, address_type=ADDRESS_TYPE)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 415, in connect
self.sendline(cmd)
File "/usr/lib/python3.8/contextlib.py", line 120, in __exit__
next(self.gen)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 191, in event
self.wait(event, timeout)
File "/usr/local/lib/python3.8/dist-packages/pygatt/backends/gatttool/gatttool.py", line 156, in wait
if not self._event_vector[event]["event"].wait(timeout):
File "/usr/lib/python3.8/threading.py", line 558, in wait
signaled = self._cond.wait(timeout)
File "/usr/lib/python3.8/threading.py", line 306, in wait
gotit = waiter.acquire(True, timeout)
KeyboardInterrupt