   T2 =  OT = PW = NW =  dustDensity = SquareWaveCount = old_SquareWaveCount = 0 ;
   //T2 =  OT = PW = NW =  dustDensity = 0 ;
   PIR = HO = HL = moisture = unihost = rsphost = unitot = rsptot = 0;
+  acquirestatus = 0;
   msgcallback = false;
 
 
-  Rtc.Begin();
-  Rtc.SetIsRunning(true);
-  Rtc.SetSquareWavePin(DS1307SquareWaveOut_1Hz);
+  /*
+    enum DS1307SquareWaveOut
+    {
+    DS1307SquareWaveOut_1Hz  =  0b00010000,
+    DS1307SquareWaveOut_4kHz =  0b00010001,
+    DS1307SquareWaveOut_8kHz =  0b00010010,
+    DS1307SquareWaveOut_32kHz = 0b00010011,
+    DS1307SquareWaveOut_High =  0b10000000,
+    DS1307SquareWaveOut_Low =   0b00000000,
+    };
+  */
+  /* rtc
+    Rtc.Begin();
+    Rtc.SetIsRunning(true);
+    Rtc.SetSquareWavePin(DS1307SquareWaveOut_1Hz);
+  */
 
   lastReconnectAttempt = 0;
 
   pinMode(SquareWavePin, INPUT_PULLUP);
-  attachInterrupt(SquareWavePin, check_SquareWaveCount, FALLING);
+  /* rtc
+    attachInterrupt(SquareWavePin, check_SquareWaveCount, FALLING);
+  */
   // call check_SquareWaveCount every loop, so not use ONLOW
   // attachInterrupt(SquareWavePin, check_SquareWaveCount, ONLOW);
 

}


void ICACHE_RAM_ATTR check_SquareWaveCount() {
  SquareWaveCount++;
}

void setup() {
  delay(20);

  system_update_cpu_freq(SYS_CPU_80MHz);
  startMills = sentMills = millis();
  Wire.begin(0, 2);

volatile unsigned long SquareWaveCount;
unsigned long old_SquareWaveCount;

/* rtc
  RtcDS1307 Rtc;
*/

//---------
char* topic = "esp8266/arduino/s03";
