Skip to content

Commit

Permalink
Disable ThingSpeak on no key/channel
Browse files Browse the repository at this point in the history
  • Loading branch information
lbussy committed Nov 29, 2020
1 parent a5be926 commit d9d7e29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/thingspeaktarget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ SOFTWARE. */
bool pushThingspeak()
{
Log.verbose(F("Triggered %s push." CR), tsName);
if (strlen(config.thingspeak.key))
if (strlen(config.thingspeak.key) && config.thingspeak.channel > 0)
{
WiFiClient client;
ThingSpeak.begin(client); // Initialize ThingSpeak
Expand Down

0 comments on commit d9d7e29

Please sign in to comment.