Multiple performCommand works on Unsecure, fails on S2
Posted: 20 Sep 2021 15:25
Z-Uno bootloader version:2.1.7
Security:S2
Frequency:EU
Device included:yes
Device included securely by controller:yes
Controller:RaZberry 5.39/Z-Way 3.2.0
Devel system - only controller and Z-Uno in network
Hi,
I have this situation, I've made 10 switches with
all setters and getters looks the same, only different state variable
When the bootloader is Unsecure and sketch is compiled as Unsecure I can send (rapidly) 10 performCommands in a row to Z-Uno and it switches accordingly. You can also make a Scene where you choose 10 switches and set them to ON or OFF.
When the bootloader is S2 and sketch is compiled as S2 Authenticated sending more then two (rapidly) commands in a row, results in no action on Z-Uno side. Also creating a scene shows the same.
This is easily reproducible. Log shows that all was delivered. Can you point me to solution? Thanks.
Security:S2
Frequency:EU
Device included:yes
Device included securely by controller:yes
Controller:RaZberry 5.39/Z-Way 3.2.0
Devel system - only controller and Z-Uno in network
Hi,
I have this situation, I've made 10 switches with
Code: Select all
ZUNO_SETUP_CHANNELS(ZUNO_SWITCH_BINARY(getter0, setter0),
ZUNO_SWITCH_BINARY(getter1, setter1),
ZUNO_SWITCH_BINARY(getter2, setter2),
ZUNO_SWITCH_BINARY(getter3, setter3),
ZUNO_SWITCH_BINARY(getter4, setter4),
ZUNO_SWITCH_BINARY(getter5, setter5),
ZUNO_SWITCH_BINARY(getter6, setter6),
ZUNO_SWITCH_BINARY(getter7, setter7),
ZUNO_SWITCH_BINARY(getter8, setter8),
ZUNO_SWITCH_BINARY(getter9, setter9)
);
Code: Select all
byte getter0() {
return lastSetValue_R0;
}
void setter0(byte newValue) {
if (newValue > 0) {
digitalWrite(RELAY_PIN0, LOW);
} else {
digitalWrite(RELAY_PIN0, HIGH);
}
lastSetValue_R0 = newValue;
digitalWrite(STATUS_LED, LOW);
}
When the bootloader is S2 and sketch is compiled as S2 Authenticated sending more then two (rapidly) commands in a row, results in no action on Z-Uno side. Also creating a scene shows the same.
This is easily reproducible. Log shows that all was delivered. Can you point me to solution? Thanks.