-
-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WDT Reset on Pubsubclient Connect #42
Comments
I face the same issue, exactly same line. |
@srinivastinku No I was unable to resolve. |
@benwinston Okay thank you. |
hi guys, are you using it with arduinoWebSockets v.2.1.0, arduino/esp sdk
2.4.1 and pubsubclient version v2.6?
are you having problem with the example? or have you customize the code
already?
This line creates a circular buffer with 1000 bytes that will be used
between the websocket layer and the mqtt layer. Maybe try to decrease this
number? AWSWebSocketClient awsWSclient(1000);
I've tested with Wemos flash size 4M (1M SPIFFS). I do not have a NodeMCU
to test if it is a problem with the board. The example is working here.
…On Thu, Apr 11, 2019 at 3:01 AM srinivastinku ***@***.***> wrote:
@benwinston <https://github.com/benwinston> Okay thank you.
@odelot <https://github.com/odelot> Can you please help here.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#42 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AE34DoiE-l_TUvcuLFJ7OwRyBV9q6i1kks5vfs-pgaJpZM4VKqUk>
.
|
Hi, I have stuck with the same problem and finally can make it work now. My code is based on this sketch https://github.com/HarringayMakerSpace/awsiot/blob/master/Esp8266AWSIoTExample/Esp8266AWSIoTExample.ino which is a bit different from the OP's, but maybe it might shares some characteristics, so I think it might be useful to share my discovery. I found 3 pitfalls that can cause the problem.
This does not work.
But this works.
I do not fully understand it but I found that using other NTP solutions such as what described in this tutorial does not work with AWS IOT. Final SuggestionIf you cannot make it work yet, I suggest that you start over with the example sketch that works. Try changing it a little bit by bit and test if it works before going further. Hope this helps anyone who stuck with this problem. |
Hi All,
I am trying to connect to AWS IoT / use MQTT running one of the examples from this project on a NodeMCU. While the sketch runs, an error occurs and the serial monitor shows a WDT Soft Reset.
From using the ESPExceptionDecoder, there appears to be an issue with AWSWebSocketClient. I get the following trace from the Decoder:
The error occurred on line this line from my sketch:
client.connect(clientID)
And the line that caused the error in AWSWebSocketClient.cpp is the call to "getsize" in the available() method:
The code for my sketch follows:
Any suggestions are appreciated.
The text was updated successfully, but these errors were encountered: