     receivedpayload += (char)inpayload[i];
   }
   /*
-  Serial.print("[MQTT] intopic : ");
-  Serial.print(receivedtopic);
-  Serial.print(" payload: ");
-  Serial.println(receivedpayload);
+    Serial.print("[MQTT] intopic : ");
+    Serial.print(receivedtopic);
+    Serial.print(" payload: ");
+    Serial.println(receivedpayload);
   */
   parseMqttMsg(receivedpayload, receivedtopic);
 }

  }

  /*
  if (now() != prevDisplay)
  {
    prevDisplay = now();
    if (timeStatus() == timeSet)
    {


  if (receivedtopic == homekit_subscribe_topic)
  {
    if (root.containsKey("ac_temp") && root.containsKey("ac_mode") && root.containsKey("ac_flow"))
    {
      if ((ir_data.ac_temp != root["ac_temp"]) || (ir_data.ac_flow != root["ac_flow"]) || (ir_data.ac_mode != root["ac_mode"]))
      {
        ir_data.ac_temp = root["ac_temp"];
        ir_data.ac_flow = root["ac_flow"];
        ir_data.ac_mode = root["ac_mode"];
        ir_data.haveData = true;
        where_haveData_called = 1;
      }
    }
  }
}
