 void setup()
 {
   startMills = millis();
+  prevMills =  millis();
+  portCount = 0;
   //Serial.begin(74880);
 
   Serial.println("");

    payload += ESP.getFreeHeap();
    payload += "i,RSSI=";
    payload += WiFi.RSSI();

    Serial.print("payload : ");
    Serial.println(payload);

  }
  //delay(1);
  delayMicroseconds(200);
  prevMills = millis() ;
  portCount++;
}

void sendUdpSyslog(String msgtosend)
