Is it possible to transfer .xml files with max size of 50kb from IOT device to AWS cloud using MQTT ?

0

I want to transfer the .xml file to cloud using MQTT to AWS cloud where those xml files are fetched from local server to IOT device. is that possible to transfer xml files with max size of 50kb . dose the MQTT has that bandwidth ? please suggest me how to do it and suggest any reference document to do so.

질문됨 2달 전102회 조회
1개 답변
1

It is possible to transfer XML files up to 50KB in size from an IoT device to AWS using MQTT. Remember the following though:

  • MQTT has a maximum payload size limit of 128KB per message. So files up to 50KB can easily be transferred in a single message.
  • On the device, publish the XML file contents to the appropriate MQTT topic for uploading files.
  • On AWS, set up an MQTT subscriber that can receive messages on that topic and save the file data to S3 or another storage service.
  • If the file is larger than the maximm payload size, it will need to be split into multiple messages. The subscriber would then need to reassemble the file fragments.
  • Make sure the IoT device has permission to publish to the required MQTT topic. And the subscriber role allows pulling files from S3.
profile picture
전문가
답변함 2달 전

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

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

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

관련 콘텐츠