eclipse-paho/paho.mqtt.python

Connecting With Enhanced Authentication

Opened this issue · 0 comments

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 - well written questions are generally answered
    within a day. Please use the tags MQTT, Python and Paho.
  • Reddit - great for questions requiring discussion.
  • MQTT Google Group - fairly quiet but questions about the protocol are generally answered quickly.
  • Eclipse paho-dev mailing list - 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 (especially the
    "Known limitations" section) and look at the examples.
  • Search through the project 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 / mosquitto_sub)
    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:
image

Currently, I'm setting a Properties object with the given parameters and passing it into connect():
image

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