lego-ble-wireless-protocol-docs
lego-ble-wireless-protocol-docs copied to clipboard
StartPower(Power1, Power2) command type
Hello,
The StartPower(Power1, Power2) function (Output Command 0x81 - Sub Command 0x02) is stated as using the "WriteDirectDataMode" (0x81, 0x51, mode undefined?). I believe it is a error/typo since no mode is defined for the WriteDirectDataMode command and mode=0x02 is already used by PresetEncoder(Position).
It should most likely use the normal "Port Output Command" (0x81, 0x02).
Best Regards, Laurent
I can confirm this. by treating the command not a WriteDirectDataMode but instead as a SubCommand 0x02 (and I guess therefore addressing the Hub and not the port), the method StartPower(power1, power2)
start to work as expected. Lost some 30mins because of that.