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