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

  }
  //delay(1);
  delayMicroseconds(200);
}

void sendUdpSyslog(String msgtosend)

    payload += ESP.getFreeHeap();
    payload += "i,RSSI=";
    payload += WiFi.RSSI();
    payload += ",delay=";
    payload += (millis() - prevMills);

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