Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connection refused: Unable to run lightController.py file running #40

Open
supriya-s-jadhav opened this issue Mar 10, 2021 · 0 comments

Comments

@supriya-s-jadhav
Copy link

I have created a folder "test" that has cert,public key, private key of gg_switch and gg_trafficlight,roo cert, lightcontroller.py and trafficlight.py. Ping command works fine. Now, when I am trying to run the below command:
cd path-to-certs-folder
python lightController.py --endpoint AWS_IOT_ENDPOINT --rootCA root-ca-cert.pem --cert switch.cert.pem --key switch.private.key --thingName GG_TrafficLight --clientId GG_Switch
I got errors as follows:
Traceback (most recent call last):
File "lightController.py", line 210, in
myAWSIoTMQTTShadowClient.connect()
File "/Library/Python/2.7/site-packages/AWSIoTPythonSDK/MQTTLib.py", line 1271, in connect
return self._AWSIoTMQTTClient.connect(keepAliveIntervalSecond)
File "/Library/Python/2.7/site-packages/AWSIoTPythonSDK/MQTTLib.py", line 513, in connect
return self._mqtt_core.connect(keepAliveIntervalSecond)
File "/Library/Python/2.7/site-packages/AWSIoTPythonSDK/core/protocol/mqtt_core.py", line 196, in connect
self.connect_async(keep_alive_sec, self._create_blocking_ack_callback(event))
File "/Library/Python/2.7/site-packages/AWSIoTPythonSDK/core/protocol/mqtt_core.py", line 223, in connect_async
raise e
socket.error: [Errno 61] Connection refused

What did I miss in the configuration setting? I appreciate your response to my query. Thank you so much in advance for your time and help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant