 #endif
 }
 
-#ifdef VPIN_BOOT_VALUE
-BLYNK_READ(VPIN_BOOT_VALUE)
-{
-    Blynk.virtualWrite(VPIN_BOOT_VALUE, bootCount);
-}
-#endif
-
-#ifdef VPIN_RSSI_VALUE
-BLYNK_READ(VPIN_RSSI_VALUE)
-{
-    Blynk.virtualWrite(VPIN_RSSI_VALUE, rssiValue);
-}
-#endif
-
-#ifdef VPIN_LM35_VALUE
-BLYNK_READ(VPIN_LM35_VALUE)
-{
-    Blynk.virtualWrite(VPIN_LM35_VALUE, String::format("%4.1f", tempValue));
-}
-#endif
-
-#ifdef VPIN_LM35_TREND
-BLYNK_READ(VPIN_LM35_TREND)
-{
-    Blynk.virtualWrite(VPIN_LM35_TREND, String::format("%5.3f", tempTrend));
-}
-#endif
-
-#ifdef VPIN_LM35_MIN
-BLYNK_READ(VPIN_LM35_MIN)
-{
-    Blynk.virtualWrite(VPIN_LM35_MIN, String::format("%4.1f", tempValueMin));
-}
-#endif
-
-#ifdef VPIN_LM35_MAX
-BLYNK_READ(VPIN_LM35_MAX)
-{
-    Blynk.virtualWrite(VPIN_LM35_MAX, String::format("%4.1f", tempValueMax));
-}
-#endif
-
-#ifdef VPIN_RECONNECTS
-BLYNK_READ(VPIN_RECONNECTS)
-{
-    Blynk.virtualWrite(VPIN_RECONNECTS, reconnects);
-}
-#endif
-
-#ifdef VPIN_LM35_RESET
-BLYNK_WRITE(VPIN_LM35_RESET)
+#ifdef BLYNK_VPIN_BOOT_VALUE
+BLYNK_READ(BLYNK_VPIN_BOOT_VALUE)
+{
+    Blynk.virtualWrite(BLYNK_VPIN_BOOT_VALUE, bootCount);
+}
+#endif
+
+#ifdef BLYNK_VPIN_RSSI_VALUE
+BLYNK_READ(BLYNK_VPIN_RSSI_VALUE)
+{
+    Blynk.virtualWrite(BLYNK_VPIN_RSSI_VALUE, rssiValue);
+}
+#endif
+
+#ifdef BLYNK_VPIN_LM35_VALUE
+BLYNK_READ(BLYNK_VPIN_LM35_VALUE)
+{
+    Blynk.virtualWrite(BLYNK_VPIN_LM35_VALUE, String::format("%4.1f", tempValue));
+}
+#endif
+
+#ifdef BLYNK_VPIN_LM35_TREND
+BLYNK_READ(BLYNK_VPIN_LM35_TREND)
+{
+    Blynk.virtualWrite(BLYNK_VPIN_LM35_TREND, String::format("%5.3f", tempTrend));
+}
+#endif
+
+#ifdef BLYNK_VPIN_LM35_MIN
+BLYNK_READ(BLYNK_VPIN_LM35_MIN)
+{
+    Blynk.virtualWrite(BLYNK_VPIN_LM35_MIN, String::format("%4.1f", tempValueMin));
+}
+#endif
+
+#ifdef BLYNK_VPIN_LM35_MAX
+BLYNK_READ(BLYNK_VPIN_LM35_MAX)
+{
+    Blynk.virtualWrite(BLYNK_VPIN_LM35_MAX, String::format("%4.1f", tempValueMax));
+}
+#endif
+
+#ifdef BLYNK_VPIN_RECONNECTS
+BLYNK_READ(BLYNK_VPIN_RECONNECTS)
+{
+    Blynk.virtualWrite(BLYNK_VPIN_RECONNECTS, reconnects);
+}
+#endif
+
+#ifdef BLYNK_VPIN_LM35_RESET
+BLYNK_WRITE(BLYNK_VPIN_LM35_RESET)
 {
     if (param.asInt() == HIGH)
     {

#ifdef THINGSPEAK_CLOUD
const unsigned int PERIOD_PUBLISH_THINGSPEAK = 60000;
const char* THINGSPEAK_TOKEN = CREDENTIALS_THINGSPEAK_TOKEN;
const unsigned long CHANNEL_NUMBER = CREDENTIALS_THINGSPEAK_CHANNEL;
#define FIELD_RSSI_VALUE 1
#define FIELD_TEMP_VALUE 2
#define FIELD_TEMP_TREND 3
TCPClient ThingSpeakClient;
int thingspeakResult;
#endif


// Backup variables (long term statistics)
retained int bootCount, bootTimeLast, bootRunPeriod, reconnects;
retained float tempValueMin = 150.0, tempValueMax = -50.0;


//-------------------------------------------------------------------------
