summaryrefslogtreecommitdiff
path: root/docs/proposals
diff options
context:
space:
mode:
authorTianTianBigWang <zilong.wang@daocloud.io>2021-08-23 17:25:01 +0800
committerTianTianBigWang <zilong.wang@daocloud.io>2021-08-23 18:11:01 +0800
commitf8404b6e5d9b9dcd65f5cac0be93f86db7b28bcc (patch)
tree7c395b1c5945f71ebd49fbb81f8c3325b93dd52a /docs/proposals
parentMerge pull request #2897 from gy95/common (diff)
downloadkubeedge-f8404b6e5d9b9dcd65f5cac0be93f86db7b28bcc.tar.gz
Fixed modbus config parameters null value invalid
Signed-off-by: TianTianBigWang <zilong.wang@daocloud.io>
Diffstat (limited to 'docs/proposals')
-rw-r--r--docs/proposals/device-crd.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/proposals/device-crd.md b/docs/proposals/device-crd.md
index c746cab53..b128af839 100644
--- a/docs/proposals/device-crd.md
+++ b/docs/proposals/device-crd.md
@@ -254,9 +254,9 @@ type VisitorConfigModbus struct {
// Required: Type of register
Register ModbusRegisterType `json:"register,omitempty"`
// Required: Offset indicates the starting register number to read/write data.
- Offset int64 `json:"offset,omitempty"`
+ Offset *int64 `json:"offset,omitempty"`
// Required: Limit number of registers to read/write.
- Limit int64 `json:"limit,omitempty"`
+ Limit *int64 `json:"limit,omitempty"`
// The scale to convert raw property data into final units.
// Defaults to 1.0
// +optional