     wifi_connect();
   }
 }
-
-
-String macToStr(const uint8_t* mac)
-{
-  String result;
-  for (int i = 0; i < 6; ++i)
-  {
-    result += String(mac[i], 16);
-    if (i < 5)
-      result += ':';
-  }
-  return result;
-}
-
 // end of file

    {
      client.loop();
    }
  }
  else
  {

{
  digitalWrite(RELAY_PIN, bRelayState);
  bUpdated = false;
}

void run_lightcmd_isr()
{
  bRelayState = !bRelayState;
  bUpdated = true;
}

String macToStr(const uint8_t* mac)
{
  String result;
  for (int i = 0; i < 6; ++i)
  {
    result += String(mac[i], 16);
    if (i < 5)
      result += ':';
  }
  return result;
}

void ArduinoOTA_config()
