Add comment for iso time format

This commit is contained in:
WQY\qiong
2023-02-10 01:47:19 +08:00
parent 62a1303b8f
commit e5f67af36b

View File

@@ -761,5 +761,6 @@ def get_scada_data(name: str, device_id: str) -> dict[str, Any]:
return api.get_scada_data(name, device_id)
# example: set_scada_data(p, ChangeSet({'device_id': 'sm_device', 'data': [{ 'time': '2023-02-10 00:02:22', 'value': 100.0 }, { 'time': '2023-02-10 00:03:22', 'value': 200.0 }]}))
# time format must be 'YYYY-MM-DD HH:MM:SS'
def set_scada_data(name: str, cs: ChangeSet) -> ChangeSet:
return api.set_scada_data(name, cs)