Skip to content

Commit d2dd65d

Browse files
committed
Added a warning message if the device isnt' in the channel setting.
1 parent 4a6b8f6 commit d2dd65d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/iot/iot_thingspeak/flxIoTThingSpeak.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,10 @@ class flxIoTThingSpeak : public flxMQTTESP32SecureCore<flxIoTThingSpeak>, public
9292
{
9393
jObj = jsonDoc[it->first];
9494
if (jObj.isNull())
95+
{
96+
flxLog_W(F("ThingSpeak - no channel id found for device: %s. Check the Channel setting"), it->first);
9597
continue;
98+
}
9699

97100
// Thingspeak channel values are sent as "field<n>=<value>&field<n+1>=<value>..."
98101
buffer = "";

0 commit comments

Comments
 (0)