eclipse-paho / eclipse-paho/paho.mqtt.python
Connecting With Enhanced Authentication
- Dominant language
- Python
- Stars
- 2.4k
- Forks
- 742
- Avg merge
- 12d 48m
- Merged PRs (30d)
- 1
Description
# Prerequisites
*Note: You may remove this section prior to submitting your question.*
A small team of volunteers monitors issues; this is the same team that develops the library. Whilst we are keen to help,
there are often better places to ask questions, including:
- [Stack Overflow](https://stackoverflow.com/questions/tagged/mqtt) - well written questions are generally answered
within a day. Please use the tags MQTT, Python and Paho.
- [Reddit](https://www.reddit.com/r/MQTT/) - great for questions requiring discussion.
- [MQTT Google Group](https://groups.google.com/g/mqtt) - fairly quiet but questions about the protocol are generally answered quickly.
- [Eclipse paho-dev mailing list](https://dev.eclipse.org/mailman/listinfo/paho-dev) - for general discussion about the paho project.
Prior to asking a question here, please:
- [ ] Search the resources mentioned above (it's likely someone else has asked the same question)
- [ ] Read the [readme](https://github.com/eclipse/paho.mqtt.python/blob/master/README.rst) (especially the
"Known limitations" section) and look at the [examples](https://github.com/eclipse/paho.mqtt.python/tree/master/examples).
- [ ] Search through the [project issues](https://github.com/eclipse/paho.mqtt.python/issues).
- [ ] Confirm that you are using the latest release of the library.
- [ ] Ensure your question is specific to this project; consider using another tool (e.g. [MQTTX](https://mqttx.app/) / [mosquitto_sub](https://mosquitto.org/man/mosquitto_sub-1.html))
to test your assumptions.
# Question
I'm trying to figure out how to connect to a broker with a SAT Token. Essentially, looking for the Paho way to do this:
Currently, I'm setting a `Properties` object with the given parameters and passing it into `connect()`:
However, we are still unable to connect. Are the Auth Method and Data properties being used correctly here?
* Python version: 3.12
* Library version: 2.1.0
* Operating system (including version): Windows 11
* MQTT server (name, version, configuration, hosting details): MQTT 5
Contributor guide
Assessment
This issue has not been assessed yet.