From c02e82dcc03587dec246c683c0be44944ce73449 Mon Sep 17 00:00:00 2001 From: peterlu14 Date: Thu, 27 Jan 2022 17:27:44 +0800 Subject: [PATCH] [update] add update device calibration --- requests.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/requests.py b/requests.py index 5ac7271..604e4cb 100644 --- a/requests.py +++ b/requests.py @@ -46,3 +46,9 @@ class Requests(): 'device': device, 'instruction': instruction }) + + def update_device_calibration(self, device: str) -> None: + self._mqtt_client.publish({ + 'header': 'device_instruction/0', + 'device': device, + }) \ No newline at end of file