 }
 
 boolean reconnect() {
-  if (!client.connected()) {
-    if (client.connect((char*) clientName.c_str(), willTopic, 0, true, willMessage)) {
+  if (!client.connected()) 
+  {
+    if (client.connect((char*) clientName.c_str(), willTopic, 0, true, willMessage)) 
+    {
       client.publish(willTopic, "1", true);
-      if ( ResetInfo == false) {
+      if ( ResetInfo == false) 
+      {
         client.publish(hellotopic, (char*) getResetInfo.c_str());
         ResetInfo = true;
-      } else {
+      } 
+      else 
+      {
         client.publish(hellotopic, "hello again 1 from esp-power");
       }
       client.subscribe(subtopic);
       sendUdpSyslog("---> mqttconnected");
-    } else {
+    } 
+    else 
+    {
       syslogPayload = "failed, rc=";
       syslogPayload += client.state();
       sendUdpSyslog(syslogPayload);

  delay(100);
}

void ICACHE_RAM_ATTR sendUdpSyslog(String msgtosend) {
  unsigned int msg_length = msgtosend.length();
  byte* p = (byte*)malloc(msg_length);
  memcpy(p, (char*) msgtosend.c_str(), msg_length);

static const uint8_t RTC_READ_ADDRESS  = 0;

//
static uint32_t fnv_1_hash_32(uint8_t *bytes, size_t length) 
{
  static const uint32_t FNV_OFFSET_BASIS_32 = 2166136261U;
  static const uint32_t FNV_PRIME_32 = 16777619U;
  uint32_t hash = FNV_OFFSET_BASIS_32;;
