This commit introduces support for MQTT authentication by adding username and password fields to the MQTT client configuration. The username and password are retrieved from the configuration file and set in the MQTT client.
Additionally, this commit improves error handling during MQTT client connection by checking the result code and printing it for debugging purposes. It also prints the subscribed topic for further debugging.
This commit introduces support for MQTT authentication by adding username and password fields to the MQTT client configuration. The username and password are retrieved from the configuration file and set in the MQTT client.
Additionally, this commit improves error handling during MQTT client connection by checking the result code and printing it for debugging purposes. It also prints the subscribed topic for further debugging.