Hello,
Can anyone please paste some snippet of MQTTClient initialization when connecting over ssl?
I cannot make it work. What are mandatory ssl_params? I'm trying to put only ca_certs, but getting:
TypeError: extra keyword arguments given
during connect.
mqtt=MQTTClient('testClient','192.168.10.100', port=8883, user='test', password='simple4U',ssl=True, ssl_params={"ca_certs":"/crt/ca.crt"})
mqtt.simple connection over ssl
Re: mqtt.simple connection over ssl
I assume you're using an esp8266-based board. In that case the ssl certs are not yet supported but there is some working code which adds this feature, see here: https://github.com/micropython/micropython/pull/3398 . At that link you can also see an example of using MQTT.
Re: mqtt.simple connection over ssl
Thanks a lot Damien! This is it!