diff options
| author | TianTianBigWang <zilong.wang@daocloud.io> | 2021-08-23 17:25:01 +0800 |
|---|---|---|
| committer | TianTianBigWang <zilong.wang@daocloud.io> | 2021-08-23 18:11:01 +0800 |
| commit | f8404b6e5d9b9dcd65f5cac0be93f86db7b28bcc (patch) | |
| tree | 7c395b1c5945f71ebd49fbb81f8c3325b93dd52a /docs/proposals | |
| parent | Merge pull request #2897 from gy95/common (diff) | |
| download | kubeedge-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.md | 4 |
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 |
