0
votes

I basically need to send a command to a device from a python server and the device will publish the reply to a topic and I need to catch the reply server side. To publish from the server to the device I'm using the boto3 iot-data module. But how can I subscribe to another topic to get the reply from the device? It seems there is no way by using the aws python libraries. Do I need to use a genetic MQTT client like paho?

Thank you.

1

1 Answers

1
votes

You are correct, the AWS SDK for Python does not provide a method for subscribing to a MQTT topic. You can either use the AWS Python IoT SDK, or a generic MQTT client like Paho.