I have successfully hooked my RaspberryPi up to AWS IoT Core and am able to publish/subscribe to the "sdk/test/Python" topic without any problem. However whenever I change the topic to a custom value, I get either a "subscribeTimeoutException()" or a "publishTimeoutException()".
I've run the command:
python aws-iot-device-sdk-python/samples/basicPubSub.py -e xxxxxxxxx-xxx.iot.us-west-2.amazonaws.com -r root-CA.crt -c RaspberryPi.cert.pem -k RaspberryPi.private.key
However, when I attempt to manually select the topic with the following command, I get the aforementioned errors.
python aws-iot-device-sdk-python/samples/basicPubSub.py -e xxxxxxxxx-xxx.iot.us-west-2.amazonaws.com -r root-CA.crt -c RaspberryPi.cert.pem -k RaspberryPi.private.key -t testTopic
Another attempt I tried was to manually change the "default" value on line 46, I also get the same exceptions.
Inside of the AWS IoT console, I'm able to publish/subscribe to "testTopic", which leads me to believe I may be missing a permission perhaps?
The code is a direct copy of: https://github.com/aws/aws-iot-device-sdk-python/blob/master/samples/basicPubSub/basicPubSub.py
All I'd like to do is to have the ability to manually set my topic names. Does anyone have any insights into this problem?