 void setup()
 {
   /*
-  Serial.begin(115200);
-  Serial.println();
-  Serial.println("Starting....... ");
+    Serial.begin(115200);
+    Serial.println();
+    Serial.println("Starting....... ");
   */
-  
+
   ir_data.ac_mode          = 0;
   ir_data.ac_temp          = AC_DEFAULT_TEMP;
   ir_data.ac_flow          = AC_DEFAULT_FLOW;


  if (receivedtopic == homekit_subscribe_topic)
  {
    if (root.containsKey("ac_temp"))
    {
      if (ir_data.ac_temp != root["ac_temp"])
      {
        ir_data.ac_temp = root["ac_temp"];

        if (ir_data.ac_mode == 1)
        {
          ir_data.haveData = true;
          where_haveData_called = 1;
        }
      }
      ir_data.ac_flow = root["ac_flow"];
    }

    if (root.containsKey("ac_mode"))
    {
      ir_data.ac_mode = root["ac_mode"];
      ir_data.haveData = true;
      where_haveData_called = 2;
    }
  }
}

    free(p);
    client.loop();
    /*
      Serial.print("[MQTT] out topic : ");
      Serial.print(topictosend);
      Serial.print(" payload: ");
      Serial.print(payloadtosend);
      Serial.println(" publish failed");
    */
    return false;
  }
