1 Answer
- Newest
- Most votes
- Most comments
0
Hi - Thanks for reaching out. I would say start with this whitepaper to follow a design pattern https://docs.aws.amazon.com/whitepapers/latest/designing-mqtt-topics-aws-iot-core/mqtt-design-best-practices.html
Then you can look into Tutorial: Connecting a device to AWS IoT Core by using the AWS IoT Device SDK. It uses MQTT as an example with Python.
Relevant content
- Accepted Answer
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
I dont need help merely "connecting to AWS MQTT". Or just "publishing a message". There's enough examples of that. As I said in my post, I need code specific to handling command and control of an IoT device, using pure MQTT. That means:
sending multiple commands over time to topic cmd/devicename/some-command-topic
receiving updates back as to the success or failure of each command running on the device.
The AWS docs recommend using a transaction id. but I cant find a single example of working code that does this. I dont see anything specific to that in the references you gave.