May 22, 2016
I'm new here and trying to post to a new channel via the Arduino IDE and a NodeMcu 0.9 ESP8266 board. I can post direct from a browser and see the results OK BUT when I run some code via the
library e.g. the lines below...
int ExitCode = ThingSpeak.writeFields(MyTSChannelNumber, MyTSWriteAPIKey);
if (ExitCode == 200)
Serial.print (" 200=Success! ");
Serial.print (" 🙁 Thingspeak Error Code = "); Serial.print(ExitCode);
I get a -302 error code! and of course no data is written. Otherwise I am quite close to getting something done.
This is a "#define ERR_UNEXPECTED_FAIL -302 // Unexpected failure during write to ThingSpeak"
Can anyone help with demystifying the library exit code or see a problem in what I have done? How can I test things better. I get a -301 when I sever the connection which is what I would expect.
Most Users Ever Online: 166
Currently Browsing this Page:
Guest Posters: 1
Newest Members:aaceitunog01, AlinaCutle, MARTO, simplicity1, jango6954, LDN001
Moderators: cstapels: 460
Administrators: Hans: 405, lee: 457