Regarding MQTT client not receiving data from device

0

Hi,

we are sending json object comprising of following data.

  1. time
  2. sensor_a0
  3. ecg

Format for json data is [{"time":["2023-6-27-13:15:37","2023-6-27-13:15:37","2023-6-27-13:15:37","2023-6-27-13:15:37","2023-6-27-13:15:37","2023-6-27-13:15:37","2023-6-27-13:15:37","2023-6-27-13:15:37"],"sensor_a0":[0,1,2,3,4,5,6,7],"ecg":[0,0,0,-65533,-65534,-65535,-131069,-131071]}].

As you can see i am transmitting arrays of time, sensor_a0 and ecg as a single json object over mqtt. This works well up to 5 data samples. but when i tried to send more than 5 data samples to aws, it is not receiving anything. I have tested it by myself. I have checked documentation of aws that says that single object that aws iot core can receive json object having maximum size of 128KB.

  • I have no problem with that payload in the MQTT test client in AWS IoT Core. What client are you using? Please tell us more about how you are publishing the message.

  • Hi @Greg B, I have found the solution. it is having limit set in pubsubclient library. not on AWS side. Thanks

kushal
已提問 1 年前檢視次數 277 次
2 個答案
0
已接受的答案

I have found the solution. it is having limit set in pubsubclient library. not on AWS side. Thanks

kushal
已回答 1 年前
0

Hi I am using aws iot core mqtt client. I am using esp32 as a device and send data using mqtt protocol. i am able to see output on my consol but when i see this output on aws, i am not getting anything. as i told you, for more than 5 msgs, i wont get anything.

kushal
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南