@ -84,6 +84,7 @@ void callback(char* topic, byte* payload, unsigned int length) {
}
else if (strcmp(topic, "alarm/state") == 0)
{
if (doc["changed"] == true) {
if (strcmp(doc["status"], "Armed") == 0)
if (bool reed = digitalRead(REED_ACTIVATION_PIN) == 1)
@ -100,6 +101,7 @@ void callback(char* topic, byte* payload, unsigned int length) {