2021-11-30 最新thingsboard python device sdk中的OTA不能升级的bug

2021-11-30 thingsboard 客户端SDK无法OTA的bug

2021-11-30, github上最新的thingsboard_python_client_sdk的代码里面有个bug,导致使用OTA升级时,设备端无法发现新的升级固件。

**

解决方法:

**
在tb_device_mqtt.py中line 326,原始代码为:

if message.topic.startswith("v1/devices/me/attributes/"):

修改为

if message.topic.startswith("v1/devices/me/attributes/") and (FW_VERSION_ATTR.encode() in message.payload):

**

欢迎扫码加入Thingsboard技术交流QQ群。

**
欢迎加入Thingsboard技术交流2群

猜你喜欢

转载自blog.csdn.net/qq_27104889/article/details/121668511