Open vivekmystrey opened 1 year ago
And further debugging, found with MicroPython Version v1.19 at line 96 (resp = self.sock.read(4)
) in simple.py inside connect function it is getting null response whereas with MicroPython Version 1.17 it gets byte values.
Certificate and Key files need to be in der format
openssl x509 -in client.crt -out client_crt.der -outform DER
openssl rsa -in client.key -out client_key.der -outform DER
Have there been any updates on this, @vivekmystrey ? Did you get it working? I'm hitting the same error.
It's likely your certificate policy is too restrictive. Make sure you have iot:connect permissions set correctly.
With the following test script, I am able to publish messages to AWS Cloud for MicroPython version v1.17. However, the same script does not work for MicroPython version 1.19 and it errors out. The issue is replicable for both ESP32-S3 and ESP32-C3.
Test Script:
Error Message:
Can you please check and advise, if the parameters to setup Mqtt connection are right?