lego-ble-wireless-protocol-docs icon indicating copy to clipboard operation
lego-ble-wireless-protocol-docs copied to clipboard

StartPower(Power1, Power2) command type

Open laurentchar opened this issue 4 years ago • 1 comments

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

laurentchar avatar Jan 31 '20 17:01 laurentchar

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.

tthiery avatar Jun 16 '20 21:06 tthiery