Closed OtisHarrison24 closed 6 years ago
Hi @OtisHarrison24 ,
Thank you very much for your interest in AWS IoT Arduino Yun SDK.
In the code you are filling the assembled payload string into a buffer with limited size. Can you try to print out the assembled data string? Can you check again the payload string length is within the allowed size of the data buffer?
In the mean time, did you see any compilation warning message about memory consumption when you compile the sketch?
Thanks, Liusu
is the buffer size the "char msg[32]"? I can see the entire message printout but the callback just never shows any published messages. I'm not getting any warnings at all. Thank you so much for all the help. I have 20 other devices working it's just this. I can have up to 3 ct values working greating but adding the last one just stops it. Could changing the char msg[32] help with larger strings?
Thanks
Hi @OtisHarrison24 ,
I am more worried about the size of the buffer: data
, which you declared as char data[100]
here. It is used to store the constructed shadow JSON string. As you keep adding more values into your shadow, the size of the JSON string might hit the overflow line for the buffer.
Can you increase the size and see if the problem still exists?
Thanks, Liusu
Hi @OtisHarrison24, We haven't heard from you in a long time and hence we are closing this issue. Please open another issue if you have any questions about the Arduino SDK. Thanks! Varun
So I am trying to publish 4 ct measures to my topic but it seems to not publish when the title length is too long. Below is my code
By changing id to thing_id it will not publish my message. when i do
Serial.println(strlen(data));
it goes from 66 to 0. I have now clue what I'm doing wrong.