Open RaymondReddingt0n opened 2 months ago
The error Error: Main stack(20007800) was overflow
indicates that the process is running out of stack space. Are you running on an RTOS?
Hi, thanks for the quick response. I don't know what that is. I'm using an Arduino UNO WiFi R4, on my Windows laptop.
In these two functions, the first one is to handle a GET request and the second one is to establish an MQTT connection to AWS and send data to it. They are called in order one after the other on the void loop() infinitely. The loop order is supposed to happen as follows:
However, in reality, only the first three work.
And then on the next sendDeviceData(), on the following line, I get the following error:
while (!client.connect(DEVICE_NAME)) {
I believe it might be due to the fact I'm using two different libraries, one for the get and the other for the send, which might be interfering with each other. These are the libraries I'm using for this portion of the code:
I'm also using these libraries:
One way I found to counter this issue could be closing each connection from each library, however that doesn't seem to be working unless I'm missing something.
Any help would be greatly appreciated! Thank you.