     static byte tempStatusOld = tempStatus;
 #endif
     static float tempValueOld = tempValue;
-    static unsigned long tsPublish;
-    if (millis() - tsPublish >= PERIOD_PUBLISH_BLYNK)
-    {
-        tsPublish = millis();
+    static unsigned long timeStamp;
+    if (millis() - timeStamp >= PERIOD_PUBLISH_BLYNK)
+    {
+        timeStamp = millis();
         float tempDiff = tempValue - tempValueOld;
         
         // Imidiate publishing

void publishThingspeak()
{
    static float tempValueOld = TEMP_VALUE_NAN;
    static unsigned long tsPublish;
    if (millis() - tsPublish >= PERIOD_PUBLISH_THINGSPEAK)
    {
        tsPublish = millis();
        bool isField = false;

#ifdef THINGSPEAK_FIELD_RSSI_VALUE

void loop()
{
    Watchdogs::tickle();
    watchConnection();
#ifdef BLYNK_CLOUD
    Blynk.run();
#endif
    measure();
    publish();
}
