 #define PHOTON_PUBLISH_DEBUG        // Uncomment to publish debug events to Particle
 #define PHOTON_PUBLISH_VALUE        // Uncomment to publish regular events to Particle
 
-#define THINGSPEAK_CLOUD            // Comment to totally ignore ThingSpeak Cloud
-
-#define BLYNK_CLOUD                 // Comment to totally ignore Blynk Cloud
+// #define THINGSPEAK_CLOUD            // Comment to totally ignore ThingSpeak Cloud
+
+// #define BLYNK_CLOUD                 // Comment to totally ignore Blynk Cloud
 #define BLYNK_NOTIFY_TEMP           // Uncomment to send Blynk push notifications
 #define BLYNK_SIGNAL_TEMP           // Uncomment to use Blynk LED signalling
 

    if (millis() - tsPublish >= PERIOD_PUBLISH_PARTICLE)
    {
        tsPublish = millis();
        // Publish boot events
        if (stateAfterBoot)
        {
            bool sent;
            sent = Particle.publish("Boot_Cnt_Run", String::format("%d/%d/%s", bootCount, bootRunPeriod, bootFwVersion));
#ifdef PHOTON_PUBLISH_DEBUG
            if (sent)
            {
                sent = Particle.publish("Sketch", String(SKETCH));
            }
#endif
            if (sent) stateAfterBoot = false;
        }
        // Publish values
        Particle.publish("RSSI", String::format("%3d", rssiValue));
        Particle.publish("Temperature/Trend", String::format("%4.1f/%4.3f", tempValue, tempTrend));
    }
}
#endif



//-------------------------------------------------------------------------
#ifdef PARTICLE_CLOUD
const unsigned int PERIOD_PUBLISH_PARTICLE = 15000;
const unsigned char PARTICLE_BATCH_LIMIT = 4;
#endif

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