Sending payload to AWS IOT using MQTT causes an error

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: Sending payload to AWS IOT using MQTT causes an error

Postby fly135 » Tue Aug 14, 2018 10:03 pm

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

sheikhumar93
Posts: 13
Joined: Fri Aug 10, 2018 7:47 am

Re: Sending payload to AWS IOT using MQTT causes an error

Postby sheikhumar93 » Wed Aug 15, 2018 7:20 am

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.

Who is online

Users browsing this forum: Bing [Bot], bnp117, EB Solution and 80 guests