Closed RicArch97 closed 4 years ago
Seems to be opcode 40110 (mesh profile location) on https://github.com/crownstone/bluenet/blob/master/docs/UART_PROTOCOL.md.
Ah error is probably unrelated to that.
Found the issue for the exception:
crownstone_uart/core/modules/MeshHandler.py", line 66, in _switch_crownstone
Change
uartMessage = UartMessagePacket(self.deviceId, UartTxType.CONTROL, controlPacket).getPacket()
To
uartMessage = UartMessagePacket(self.libState.deviceId, UartTxType.CONTROL, controlPacket).getPacket()
Tested this change by switching a Crownstone, the Crownstone now switches successfully and the exception does not occur anymore. I'm not sure about the Unknown OpCode 40110
warning, that one still remains.
Thanks! Pushed the fix.
All Crownstones + Crownstone USB were updated to 5.3.0. Using the latest commits from crownstone-lib-python-uart and crownstone-lib-python-core.
Logs:
The exceptions occurred when trying to switch a Crownstone on/off.