emqx / MQTT-Client-Examples

MQTT Client Examples
https://www.emqx.com
MIT License
832 stars 680 forks source link

fix: correct variable MQTT publish function call #138

Closed imrob-s closed 8 months ago

imrob-s commented 8 months ago

The project documentation contained a typo in the line where the mqtt_client.publish() function is called. The variable mqtt_topic was incorrectly written as topic. This fix adjusts the mqtt_client.publish() call to use the correct variable, ensuring the accuracy of the documentation and the proper functionality of the code.