connect timeout exception #223
Labels
closing-soon
This issue will automatically close in 4 days unless further comments are made.
guidance
Question that needs advice or information.
response-requested
Waiting on additional info and feedback. Will move to "closing-soon" in 7 days.
using this code to connect to thing, however, failed to connect. Can you help me with this. Code is below
from AWSIoTPythonSDK.MQTTLib import AWSIoTMQTTClient
myMQTTClient = AWSIoTMQTTClient("random")
myMQTTClient.configureEndpoint("somenumber.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) # Infinite offline Publish queueing
myMQTTClient.configureDrainingFrequency(2) # Draining: 2 Hz
myMQTTClient.configureConnectDisconnectTimeout(10) # 10 sec
myMQTTClient.configureMQTTOperationTimeout(5) # 5 sec
myMQTTClient.connect()
while 1:
myMQTTClient.publish("topic", "myPayload", 1)
The text was updated successfully, but these errors were encountered: