-
• #2
http://test.mosquitto.org/ seems to imply that port 1883 is still unencrypted, and doesn't need a certificate.
The
not authorized
is probably because you've got:username: "username", password: "password",
What happens if you just remove those?
But even for the encrypted comms, you can still use TLS with Espruino WiFi and/or the Pico.
Trying to use test.mosquitto.org/. I get a message saying "not authorized". Upon visiting their page, it says I need to use the cert, even for the unencrypted ports. On Espruino.com/MQTT, it says encryption and authentication are not implemented. So Espruino just doesn't work with the public brokers right now?
Below is the code I was using. Instead I'm using Mosca on local now and I have a working connection.