Skip to content

Allow for port 8883 due to slightly different setup #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
makermelissa opened this issue Apr 7, 2021 · 2 comments · Fixed by #5
Closed

Allow for port 8883 due to slightly different setup #4

makermelissa opened this issue Apr 7, 2021 · 2 comments · Fixed by #5

Comments

@makermelissa
Copy link
Collaborator

From @brentru:

return self.init_mqtt(IO_MQTT_BROKER, 1883, aio_username, aio_key, True)

Users may want to use secure port 8883. Setting up the client for the S2/SSL will be different and may need to be modified.

@makermelissa
Copy link
Collaborator Author

@brentru, do you have any examples for what is different?

@brentru
Copy link
Member

brentru commented Apr 7, 2021

Yes, please see the example for ESP32-S2 here: https://github.com/adafruit/Adafruit_CircuitPython_MiniMQTT/blob/master/examples/minimqtt_simpletest.py

Check out both the imports, and L75 through L86. MiniMQTT defaults to the secure port 8883, we should support that in this library by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants