Closed jshaw closed 7 years ago
Getting this as well on an ESP12 board, after fixing the 'n' case issue and adding the string functions. #15
Well, that exception report is way to cryptic to give much insight on what is the problem. You can try several things to see if some of them help:
1
- the number one. It's a valid JSON message, if not very interesting.Let us know if any of these help.
I have a similar exception. After a bit of debugging the problem comes from this while loop: https://github.com/pubnub/arduino/blob/master/PubNubDefs.h#L640
I had the exact same problem, but after hours of debugging, I found a possible workaround.
If I deleted PROGMEM
from this line, everything started working.
const static char PROGMEM chunked_str[] = "Transfer-Encoding: chunked\r\n";
https://github.com/pubnub/arduino/blob/master/PubNubDefs.h#L652
I have to say I don't understand right now, why does this work, but I thought this information
could provide some help to some people!
Thank you very much @daergoth .
As I mentioned in the ticket #15 the addition of the provided code to
PubNubDefs.h
and I see my messages get published once. Thanks! However, upon publishing, the Adafruit Feather ESP8266 seems to be crashing. As soon as it publishes, i see the message come in on the pubnub dashboard I see an Exception(3) in the serial port of the Arduino IDE. The full error output from the serial is below. Any ideas as to what might be causing the issue? Or a potential area that might be causing the problem?The code I added to
PubNubDefs.h
was placed at the end of the script after the#endif
on line # 692The message I'm posting is:
"{num:1, txt:'Yo!'}"
Thanks,