AWSIoTPythonSDK.exception.AWSIoTExceptions.connectTimeoutException
I'm getting this exception after running the sample python code on my machine.
Referred to the github exmaple. https://github.com/aws/aws-iot-device-sdk-python/issues/223
I tried node and python both the version of aws iot connection. Still unsuccesful
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient
myMQTTClient = AWSIoTMQTTClient("random")
myMQTTClient.configureEndpoint("<sample>-ats.iot.ap-south-1.amazonaws.com", 8883)
myMQTTClient.configureCredentials("C:\\Users\\preetham\\Desktop\\awsiot\\root-CA.crt", "C:\\Users\\preetham\\Desktop\\awsiot\\SWM-Preetham.private.key", "C:\\Users\\preetham\\Desktop\\awsiot\\SWM-Preetham.cert.pem")
myMQTTClient.configureOfflinePublishQueueing(-1)
myMQTTClient.configureDrainingFrequency(2)
myMQTTClient.configureConnectDisconnectTimeout(10)
myMQTTClient.configureMQTTOperationTimeout(5)
myMQTTClient.connect()
while 1:
myMQTTClient.publish("topic", "myPayload", 1)
can some one help me why this is happening? We didn't face this anytime before. Little surprised on this.