-
Notifications
You must be signed in to change notification settings - Fork 258
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
missed use of client_id in MQTT-Broker (IDFGH-13712) #286
Comments
@rk-sTEk thanks for reporting. Could you check the MQTT-Explorer settings? |
@rk-sTEk I'm not following exactly what you are missing, as I can see the client id stated in the connection log you show. Could you explain further and add a more complete reproducer? |
Ah...okay...let me specify my "problem". |
Argh...I solved my issue - but I don't know why the MQTT-library isn't auto expand the "path".
Is there a chance to get the value from "mqtt_state.connection.information.client_id" which is in client in the main app? Both case, client. and client->, end with an error. |
Hi @rk-sTEk, the mqtt client is written to support all operations required by the specification. There are many possible ways of building a topic string. If we put the client id as a prefix, we would be imposing this decision to systems that don't require it. |
Checklist
How often does this bug occurs?
always
Expected behavior
I tried to make a MQTT5-client. Everything is fine, but the client_id isn't used by the esp-board.
The MQTT-Explorer only shows an empty device/client ("blank field without a name) - the following topic is named like written in code.
Here is my code:
Actual behavior (suspected bug)
Error logs or terminal output
No response
Steps to reproduce the behavior
normaly compiled
Project release version
espidf 5.3.1
System architecture
other (details in Additional context)
Operating system
Linux
Operating system version
Debian
Shell
Bash
Additional context
It seems that the
.credentials.client_id = "sTEkSensor1",
isn't used in connection creation.
The text was updated successfully, but these errors were encountered: