[update] add data_show function print device data

This commit is contained in:
peterlu14
2022-08-11 00:58:30 +08:00
parent ead98fe8da
commit 26e02f2d40
6 changed files with 33 additions and 4 deletions
+3
View File
@@ -699,6 +699,9 @@ class DataServer(SocketServer, DataAPI):
self.mqtt_thread.publish('device_instruction', json_stringify(content), inter = True)
return True
def show_data(self, device):
self._configurations[device].put_rec_queue('show_data')
class DataRuntime(metaclass=abc.ABCMeta):
__slots__ = ('_server', '_device', '_meta_file', '_data_format',