Open meet1227 opened 4 months ago
It might be worth also posting in Discussions as there may be someone with experience of AWS iot core.
The devices I work on also connect to AWS IoT core. We most often see this error when there is not enough (continuous) memory to allocate to storing some of the SSL things in memory. I think MicroPython v1.21 was the most problematic version, and more recent versions don't have this issue.
Try checking how much memory is used/available before you attempt to connect.
Also, are you using frozen bytecode?
I'm encountering an issue while using the tls.py example code with a library. I've configured the ca, cert, and key fields as per thing in AWS iot core. When attempting to connect to the server, I'm getting the following error:
OSError: (-17168, 'MBEDTLS_ERR_RSA_PRIVATE_FAILED+MBEDTLS_ERR_MPI_ALLOC_FAILED')
OUTPUT:
I am using ESPwroom32 hardware.