mirror of
https://github.com/dptech-corp/Uni-Lab-OS.git
synced 2025-12-19 22:11:20 +00:00
feat: introduce wait_time command and configurable device communication timeout.
This commit is contained in:
@@ -275,6 +275,23 @@ separator.chinwe:
|
||||
- target_state
|
||||
type: object
|
||||
type: UniLabJsonCommand
|
||||
wait_time:
|
||||
goal:
|
||||
duration: 10
|
||||
handles: {}
|
||||
schema:
|
||||
description: 等待指定时间
|
||||
properties:
|
||||
goal:
|
||||
properties:
|
||||
duration:
|
||||
default: 10
|
||||
description: 等待时间 (秒)
|
||||
type: integer
|
||||
required:
|
||||
- duration
|
||||
type: object
|
||||
type: UniLabJsonCommand
|
||||
module: unilabos.devices.separator.chinwe:ChinweDevice
|
||||
status_types:
|
||||
is_connected: bool
|
||||
@@ -320,4 +337,8 @@ separator.chinwe:
|
||||
default: 300
|
||||
description: 传感器液位判定阈值
|
||||
type: integer
|
||||
timeout:
|
||||
default: 10
|
||||
description: 通信超时时间 (秒)
|
||||
type: integer
|
||||
version: 2.1.0
|
||||
|
||||
Reference in New Issue
Block a user