I tried and googled a lot and can't get it to work.
I try to connect to my Mosquitto MQTT Broker which speaks TLS with a self signed certificate. With python and paho mqtt I can connect with these tweaks:
client.tls_set(cert_reqs=ssl.CERT_NONE)
client.tls_insecure_set(insecure)
I tried same setting on connecting with umqtt.simple2:
client = MQTTClient(mqttclientid, <host>, port=8883, user=<mqttusername>,
password=<mqttpassword>, keepalive=30, ssl=True,
ssl_params={"cert_reqs":ssl.CERT_NONE})
client.connect()
I get the error:
Traceback (most recent call last):
File "<stdin>", line 38, in <module>
File "/lib/umqtt/simple2.py", line 67, in connect
File "/lib/umqtt/simple2.py", line 19, in _read
File "/lib/umqtt/simple2.py", line 47, in _sock_timeout
MQTTException: 30
Connecting without TLS to port 1883 is working fine.
Is it possible to connect without importing the SSL Certs on my Pico? I hope so.
Details (please complete the following information):
- Raspberry PI Pico w
- Micropython version: rp2-pico-w-20220914-unstable-v1.19.1-409
I tried and googled a lot and can't get it to work.
I try to connect to my Mosquitto MQTT Broker which speaks TLS with a self signed certificate. With python and paho mqtt I can connect with these tweaks:
client.tls_set(cert_reqs=ssl.CERT_NONE)client.tls_insecure_set(insecure)I tried same setting on connecting with umqtt.simple2:
I get the error:
Connecting without TLS to port 1883 is working fine.
Is it possible to connect without importing the SSL Certs on my Pico? I hope so.
Details (please complete the following information):