Writing to more than 5 fields with the .writeFields() function causes the Thingspeak server to receive all null data. The channel is setup properly. I have tried deleting and recreating the channel, switched the order of writes, nothing works. The stranger thing is that it all worked a few days ago.
Remove the set for "field6", works fine. Add it back... server gets null for all fields (but it does get an entry). All fields are of the same "int" type.
Anyone see anything like this? Is it flakey server code?
Both ThingSpeak and the library support writing all 8 fields at once. To be sure, I just confirmed it with a sketch running on a MKR1000.
I can also make it work with a URL in my browser:
It is possible your device is running out of RAM and causing the HTTP output buffer to get corrupted. That would explain the null response. Most of the early arduino device models don't have much RAM to begin with. It is very easy to run out of RAM and not realize it.
Most Users Ever Online: 114
Currently Online: alexparrado
Currently Browsing this Page:
Guest Posters: 1
Administrators: Hans, lee