Issue with ssl protocol to connect to AWS (Solved) #14085
-
Hi, Picow:
Error: Code:
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
I tested your code and it worked perfectly. So, probably there is something wrong on my side. Indeed the mqtt module simple.py that is installed in my Pico seems to be an old version. Apparently the MQTTClient Class definition has changed since I installed the module. in my test board. class MQTTClient:
versus latest Github class MQTTClient: |
Beta Was this translation helpful? Give feedback.
-
Thank you @aiot-maker!!
It seems my simple lib is out of phase. Where did you find yours?
EDIT: |
Beta Was this translation helpful? Give feedback.
-
You can choose to use an older version of umqtt.simple OR you can use the recent versions which support SSLContext (see the docs). You create an I recommend choosing the second approach ;). |
Beta Was this translation helpful? Give feedback.
-
Hello! I'd like to know if someone could solve the problem. I'm actually working with a nanoESP32-C6 and I'm trying to send data from the ESP to AWS IoT Core, I'm programming with MicroPython and my ESP doesn´t have support with CircuitPython yet. What can I do? Thanks for your help! Excuse me for my English, I'm from Colombia. My error: unexpected keyword argument 'ssl_params' |
Beta Was this translation helpful? Give feedback.
-
How are you formatting the parameters' code? Here's an example:
|
Beta Was this translation helpful? Give feedback.
I tested your code and it worked perfectly. So, probably there is something wrong on my side. Indeed the mqtt module simple.py that is installed in my Pico seems to be an old version. Apparently the MQTTClient Class definition has changed since I installed the module. in my test board.
class MQTTClient:
versus latest Github
class MQTTClient:
def init(
self,
client_id,
server,
port=0,
user=None,
password=None,
keepalive=0,
ssl=None,
):