-
Notifications
You must be signed in to change notification settings - Fork 136
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_cxx - Client::on_subscribed has empty topic (IDFGH-11063) #356
Comments
Removes the printf since the information isn't in the event. Closes espressif#356
Removes the printf since the information isn't in the event. Closes espressif#356
Hi @tajnymag, thanks for reporting. You can check about the events in IDF documentation Regarding the information in the DATA event, this is part of your code? I searched in the examples and we don't have this. |
Removes the printf since the information isn't in the event. Closes espressif#356
Thank you for removing the line. No, it's part of |
0.2.0 Features - configure client authentication via certificate/key or secure element (ee09ff4) Bug Fixes - removed Wno-format flag and fixed formatting warnings (c48e442) - Removes meaningless printf on subscribed handler (espressif#358) (bac742d, espressif#356) - Removes unused type for configuration (839c79d) - added idf_component.yml for examples (d273e10) - Reintroduce missing CHANGELOGs (200cbb3, espressif#235) Updated - docs(common): updated component and example links (f48d9b2) - docs(esp_mqtt_cxx): updated documentation and deployment file (a547ec8) - docs(common): improving documentation (ca3fce0) - Add homepage URL and License to all components (ef3f0ee)
…essif#358) Removes the printf since the information isn't in the event. Closes espressif#356
…essif#358) Removes the printf since the information isn't in the event. Closes espressif#356
Answers checklist.
General issue report
While using esp_mqtt(_cxx) component, I was surprised by lines of
Subscribed to
in the monitor.idf::mqtt:Client
has a hardcodedprintf
call in itson_subcribed
method. This method, however, seems to get an empty string for its givenevent->topic
.In
Client::on_data
, event hastopic
loaded properly and I can print it just fine with the exact same printf statement.Example monitor output (first "Subscribed to" comes from on_subscribed, second from on_data):
The text was updated successfully, but these errors were encountered: