1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
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.
Relevanter Inhalt
- Wie veröffentliche ich MQTT-Nachrichten von meinem Gerät auf AWS IoT Core, wenn ich Python verwende?AWS OFFICIALAktualisiert vor 3 Jahren
- AWS OFFICIALAktualisiert vor 4 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren