mhaowork / amblegpt

Video surveilance footage analyst powered by GPT-4o
MIT License
91 stars 16 forks source link

Add MQTT authentication support #1

Closed skrashevich closed 7 months ago

skrashevich commented 7 months ago

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.