We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 33e4701 commit 0dc7a88Copy full SHA for 0dc7a88
1 file changed
tb_device_mqtt.py
@@ -787,8 +787,9 @@ def __process_firmware(self):
787
def __get_firmware(self):
788
payload = '' if not self.__chunk_size or self.__chunk_size > self.firmware_info.get(FW_SIZE_ATTR, 0) \
789
else str(self.__chunk_size).encode()
790
- self._publish_data(payload, f"v2/fw/request/{self.__firmware_request_id}/chunk/{self.__current_chunk}",
791
- 1)
+ self._client.publish(
+ f"v2/fw/request/{self.__firmware_request_id}/chunk/{self.__current_chunk}",
792
+ payload=payload, qos=1)
793
794
def __on_firmware_received(self, version_to):
795
with open(self.firmware_info.get(FW_TITLE_ATTR), "wb") as firmware_file:
0 commit comments