We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 275e4d8 commit 48dfaf4Copy full SHA for 48dfaf4
tb_device_mqtt.py
@@ -792,8 +792,9 @@ def __process_firmware(self):
792
def __get_firmware(self):
793
payload = '' if not self.__chunk_size or self.__chunk_size > self.firmware_info.get(FW_SIZE_ATTR, 0) \
794
else str(self.__chunk_size).encode()
795
- self._publish_data(payload, f"v2/fw/request/{self.__firmware_request_id}/chunk/{self.__current_chunk}",
796
- 1)
+ self._client.publish(
+ f"v2/fw/request/{self.__firmware_request_id}/chunk/{self.__current_chunk}",
797
+ payload=payload, qos=1)
798
799
def __on_firmware_received(self, version_to):
800
with open(self.firmware_info.get(FW_TITLE_ATTR), "wb") as firmware_file:
0 commit comments