   sendmqttMsg(reporttopic, check_payload);
 }
 
-void ICACHE_RAM_ATTR callback(char* intopic, byte* inpayload, unsigned int length)
-{
-  String receivedtopic = intopic;
-  String receivedpayload ;
-
-  if ( receivedtopic == "esp8266/arduino/s03" || receivedtopic == "clients/dust" )
-  {
-    return;
-  }
-
-  for (int i = 0; i < length; i++)
-  {
-    receivedpayload += (char)inpayload[i];
-  }
-
-  /*
-    if (DEBUG_PRINT)
-    {
-      syslogPayload = "mqtt ====> ";
-      syslogPayload += intopic;
-      syslogPayload += " ====> ";
-      syslogPayload += receivedpayload;
-      sendUdpSyslog(syslogPayload);
-    }
-  */
-
-  if ( receivedpayload == "{\"CHECKING\":\"1\"}")
-  {
-    bsendcheck = true;
-    return;
-  }
-
-  parseMqttMsg(receivedpayload, receivedtopic);
-}
-
 void parseMqttMsg(String receivedpayload, String receivedtopic)
 {
   char json[] = "{\"Humidity\":43.90,\"Temperature\":22.00,\"DS18B20\":22.00,\"PIRSTATUS\":0,\"FreeHeap\":43552,\"acquireresult\":0,\"acquirestatus\":0,\"DHTnextSampleTime\":2121587,\"bDHTstarted\":0,\"RSSI\":-48,\"millis\":2117963}";

{
  RtcDateTime Epoch32Time = Rtc.GetDateTime();
  return (Epoch32Time + 946684800);
}

void setup()

unsigned int localPort = 2390;
const int timeZone = 9;

volatile bool bignoreACretained = false;
volatile bool bac_timer_mode = false;
volatile bool bhaveData = false;
unsigned long timerMillis;
