According to his initial post he had 892 bytes of stack space available after connecting to the MQTT server. The default is 512 byte for the AWS_IOT_MQTT_TX_BUF_LEN. So if he increased that number to 1000, it does seem he should have some stack free. But definitely increasing to 10000 as he suggested in his previous post would use up all the stack and more if his client variable is created local to the function. All signs point to his client being allocated on the stack.
John A
Sending payload to AWS IOT using MQTT causes an error
-
- Posts: 13
- Joined: Fri Aug 10, 2018 7:47 am
Re: Sending payload to AWS IOT using MQTT causes an error
Increasing the StackDepth actually solves this issue, thanks for the help kolban.
Hey John A, sorry for being a complete noob, but what do you mean by the client variable? I am not familiar with the term, can you explain it a bit? Running a Google search didnt return anything meaningful.
Hey John A, sorry for being a complete noob, but what do you mean by the client variable? I am not familiar with the term, can you explain it a bit? Running a Google search didnt return anything meaningful.
Who is online
Users browsing this forum: No registered users and 89 guests