         abort();
       }
     } else {
-      if ( client.publish(MQTT::Publish(topic, (char*) payload.c_str()) ) {
+      if ( client.publish(MQTT::Publish(topic, (char*) payload.c_str()).set_retain(0)) ) {
         if ( topic == "esp8266/arduino/s06" ) { AvgMeasuredIsSent = HIGH; }
         Serial.println("Publish ok");
       } else {

    Serial.println(payload);

    if ( retain == 1 ) {
      if ( client.publish(MQTT::Publish(topic, (char*) payload.c_str()).set_retain()) ) {
        if ( topic == "esp8266/arduino/s06" ) { AvgMeasuredIsSent = HIGH; }
        Serial.println("Publish ok");
      } else {


}

String macToStr(const uint8_t* mac)
{
  String result;
