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
질문됨 일 년 전277회 조회
2개 답변
0
수락된 답변

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

kushal
답변함 일 년 전
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
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠