Search found 1 match
- Sun Oct 06, 2019 4:06 am
- Forum: General Discussion and Questions
- Topic: Connecting to AWS with MQTT
- Replies: 39
- Views: 42005
Re: Connecting to AWS with MQTT
IndexError: list index out of range This is my code: # certificate and private key KEY_PATH = "/619e3d582c-private.pem.key" CERT_PATH = "/619e3d582c-certificate.pem" with open(KEY_PATH, 'r') as f: PVT_KEY = f.read() with open(CERT_PATH, 'r') as f: CERT_KEY = f.read() client = MQTTClient(client_id="...