Subscribe from a python server to an aws-iot topic

2.2k views Asked by At

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

There are 1 answers

1
Mark B On BEST ANSWER

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.