Currently I'm running some tests on the device, which means that I'll run basically the same script over and over again. Very often this error occurs, when initializing the device. The device seems to be turning off after some inputs of my IR remotes. Sometimes Motedem manages to read them, at other times the light freezes in blue.
If I restart the script after a frozen light, this is what I get:
Traceback (most recent call last):
File "testmotedem.py", line 8, in
btle_device = btle.Peripheral(addr)
File "/home/pi/.local/lib/python3.5/site-packages/bluepy/btle.py", line 391, in init
self._connect(deviceAddr, addrType, iface)
File "/home/pi/.local/lib/python3.5/site-packages/bluepy/btle.py", line 439, in _connect
raise BTLEDisconnectError("Failed to connect to peripheral %s, addr type: %s" % (addr, addrType), rsp)
bluepy.btle.BTLEDisconnectError: Failed to connect to peripheral 8c:14:7d:30:01:18, addr type: public
To get it to work again, the power needs to be unplugged and plugged back in
Currently I'm running some tests on the device, which means that I'll run basically the same script over and over again. Very often this error occurs, when initializing the device. The device seems to be turning off after some inputs of my IR remotes. Sometimes Motedem manages to read them, at other times the light freezes in blue.
If I restart the script after a frozen light, this is what I get:
To get it to work again, the power needs to be unplugged and plugged back in