Skip to content
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

MQTT password problem #258

Open
MajoV opened this issue Jan 16, 2025 · 1 comment
Open

MQTT password problem #258

MajoV opened this issue Jan 16, 2025 · 1 comment
Labels
bug Something isn't working mqtt

Comments

@MajoV
Copy link

MajoV commented Jan 16, 2025

It is not possible to enter an MQTT password containing the @ character.
This is a huge problem for us because our MQTT broker password contains this character.

Is there any solution for this?

@erxbout
Copy link
Collaborator

erxbout commented Jan 16, 2025

Can confirm this.

When setting 'mcu' (MqttBrokerUrl) to something like that:
mqtt://userWithSpecialPassword:r@[email protected]:1883

The parser throws an error and does not save the change on 'mcu'

However, when you url escape the '@' character it is accepted by the charger..

mqtt://userWithSpecialPassword:r%[email protected]:1883

In the end this still does not help, because the library we use does not url decode the password and sends the character as is ('%40')

We opened an issue regarding the bug there:
espressif/esp-mqtt#294

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working mqtt
Projects
None yet
Development

No branches or pull requests

2 participants