 
   if ( relaystatus != oldrelaystatus ) {
     changelight();
+    /*
     sendlightstatus();
+    */
+
+    String lightpayload = "{\"LIGHT\":";
+    lightpayload += relaystatus;
+    lightpayload += "}";
+
+    sendmqttMsg(rslttopic, lightpayload);
+
   }
 
   runTimerDoLightOff();

        ResetInfo = HIGH;
      } else {
        client.publish(hellotopic, "hello again 1 from ESP8266 s02");
      }      
      client.subscribe(subtopic);
      if (EVENT_PRINT) {
        Serial.println("connected");

          Serial.println(getResetInfo);
        }
      }
    }
  */
  //
  if (DEBUG_PRINT) {
    Serial.println("Starting UDP");
