You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As mentioned in #139, some MQTT brokers accept TLS based connections on non-standard port, e.g. test.mosquitto.org:8886.
When I tried something like this:
importadafruit_minimqtt.adafruit_minimqttasMQTT
...
broker_port=secrets["broker_port"] # set to 8886 MQTT.MQTT_TLS_PORT=broker_port# Set up a MiniMQTT Client mqtt_client=MQTT.MQTT(
broker=secrets["broker"],
port=broker_port,
socket_pool=pool,
ssl_context=ssl_context,
)
mqtt_client.connect()
it failed (with the changes for the above mentioned PR in place), because it tried to initiate 'INSECURE' (quoting the log message) connection.
Clearly something better than overriding global variable is needed, perhaps a new attribute with a setter. Or maybe my Python-fu is not enough and some other incantation is needed to overwrite the TLS port definition.
The text was updated successfully, but these errors were encountered:
As mentioned in #139, some MQTT brokers accept TLS based connections on non-standard port, e.g.
test.mosquitto.org:8886
.When I tried something like this:
it failed (with the changes for the above mentioned PR in place), because it tried to initiate 'INSECURE' (quoting the log message) connection.
Clearly something better than overriding global variable is needed, perhaps a new attribute with a setter. Or maybe my Python-fu is not enough and some other incantation is needed to overwrite the TLS port definition.
The text was updated successfully, but these errors were encountered: