     Serial.println(F("Change log mode."));
     if (payload[0] == '1') {
       logMode = true;
-    }
-    else {
+    } else {
       logMode = false;
     }
   }
   if (topic == (mainTopic + F("/ota/url"))) {
     otaURL = String(payload);
-    mqtt.publish((mainTopic+ F("/ota/nonce")).c_str(), otaAuth.nonce().c_str());
+    mqtt.publish((mainTopic + F("/ota/nonce")).c_str(),
+                 otaAuth.nonce().c_str());
   }
   if ((topic == (mainTopic + F("/ota/passwd"))) && (otaURL.length() > 7)) {
     if (otaAuth.verify(payload)) {

          Serial.println(F("HTTP_UPDATE_NO_UPDATES"));
          break;
        case HTTP_UPDATE_OK:
          Serial.println(F("HTTP_UPDATE_OK")); // may not called ESPhttpUpdate reboot the ESP?
          ESP.restart();
          break;
      }

  }
}

void mqttCallback(const char *topic_, const byte *payload_,
                  unsigned int length) {
  Serial.print(F("Message arrived ["));
  Serial.print(topic_);
  Serial.print(F("] "));
