Add comment for iso time format
This commit is contained in:
@@ -761,5 +761,6 @@ def get_scada_data(name: str, device_id: str) -> dict[str, Any]:
|
|||||||
return api.get_scada_data(name, device_id)
|
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 }]}))
|
# 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:
|
def set_scada_data(name: str, cs: ChangeSet) -> ChangeSet:
|
||||||
return api.set_scada_data(name, cs)
|
return api.set_scada_data(name, cs)
|
||||||
|
|||||||
Reference in New Issue
Block a user