[ERROR] - [tb_device_mtqq.py] - tb_device_mqtt - _on_connect - 372 - connection FAIL with error Bad user name or password Bad user name or password
原因:
由于通过环境变量配置 比 通过配置文件配置 优先级高,环境变量中有username字段,导致 security 的值被替换成 {"username": "xxx"},而不是 {"accessToken": "xxx"},所以认证不成功。
解决办法:
将环境变量去掉