Open RicArch97 opened 3 years ago
Hi ricardo, I suspect this is because the python library doesn't wait for a reply yet (@AlexDM0 correct me if i'm wrong), but just sends all commands at once. All commands before the reply are simply ignored. So for now, you'll have to add a little delay in between commands. If there's a "multiswitch" implementation, you could use that instead of all single switch commands.
This was a test of switching multiple Crownstones at once. The following Crownstones were tested:
Crownstones are switched using their respective switch functions:
dim_crownstone(id, val)
for a Crownstone that can dimswitch_crownstone(id, on_state)
for Crownstone that cannot dimFollowing debug logs were found suggesting that the correct data was indeed sent to each Crownstone:
However only 2 of those Crownstones was actually switched each time. The Crownstone that can dim, and 1 of the relay Crownstones.
The multi switch does work correctly with the cloud implementation however.