 #define SDA 12
 #define SCL 13
 
-#include "/usr/local/src/ap_setting.h"
+#include "/usr/local/src/aptls_setting.h"
 
 const char* subscribe_cmd   = "esp8266/cmd/ac";
 const char* subscribe_set   = "esp8266/cmd/acset";

  parseMqttMsg(receivedpayload, receivedtopic);
}

boolean reconnect()
{
  if (!client.connected())
  {
    if (client.connect((char*) clientName.c_str()))
    {
      client.subscribe(homekit_subscribe_topic);
      client.loop();
      Serial.println("[MQTT] mqtt connected");
    }
    else
    {
      Serial.print("[MQTT] mqtt failed, rc=");
      Serial.println(client.state());
    }
  }
  return client.connected();


Average<float> ave(10);

WiFiClientSecure sslclient;
PubSubClient client(mqtt_server, 8883, callback, sslclient);
lgWhisen lgWhisen;
WiFiUDP udp;
SI7021 sensor;
