digitalWrite(ledsArray[blinkingSelection], RELAY_STATE_CLOSED);
blinkingSelection++;
blinkingStartTime = millis(),
digitalWrite(ledsArray[blinkingSelection], RELAY_STATE_CLOSED);
blinkingSelection++;
blinkingStartTime = millis(),
if (activeSelection != blinkingSelection)
{
char str_selection[20];
digitalWrite(ledsArray[activeSelection], RELAY_STATE_CLOSED);
activeSelection = blinkingSelection; // relay states must be changed now
if (activeSelection != blinkingSelection)
{
char str_selection[20];
digitalWrite(ledsArray[activeSelection], RELAY_STATE_CLOSED);
activeSelection = blinkingSelection; // relay states must be changed now
// notify over UDP
snprintf(str_selection, 19, "{\"active\": %d}", activeSelection);
Udp.beginPacket(udp_remote_ip, 1312);
// notify over UDP
snprintf(str_selection, 19, "{\"active\": %d}", activeSelection);
Udp.beginPacket(udp_remote_ip, 1312);