Skip to content

Commit

Permalink
refactor: remove unimplemented InitCmd/RemoveCmd configuration (edgex…
Browse files Browse the repository at this point in the history
…foundry#956)

Signed-off-by: Iain Anderson <iain@iotechsys.com>
  • Loading branch information
iain-anderson committed Jun 8, 2021
1 parent 93abf71 commit 457577c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
4 changes: 0 additions & 4 deletions example/cmd/device-simple/res/configuration.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,8 @@ TokenFile = '/tmp/edgex/secrets/device-simple/secrets-token.json'

[Device]
DataTransform = true
InitCmd = ''
InitCmdArgs = ''
MaxCmdOps = 128
MaxCmdValueLen = 256
RemoveCmd = ''
RemoveCmdArgs = ''
ProfilesDir = './res/profiles'
DevicesDir = './res/devices'
UpdateLastConnected = false
Expand Down
10 changes: 0 additions & 10 deletions internal/config/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,13 @@ type DeviceInfo struct {
// DataTransform specifies whether or not the DS perform transformations
// specified by value descriptor on a actuation or query command.
DataTransform bool
// InitCmd specifies a device resource command which is automatically
// generated whenever a new device is added to the DS.
InitCmd string
// InitCmdArgs specify arguments to be used when building the InitCmd.
InitCmdArgs string
// MaxCmdOps defines the maximum number of resource operations that
// can be sent to a Driver in a single command.
MaxCmdOps int
// MaxCmdValueLen is the maximum string length of a command parameter or
// result (including the value descriptor name) that can be returned
// by a Driver.
MaxCmdValueLen int
// InitCmd specifies a device resource command which is automatically
// generated whenever a new device is removed from the DS.
RemoveCmd string
// RemoveCmdArgs specify arguments to be used when building the RemoveCmd.
RemoveCmdArgs string
// ProfilesDir specifies a directory which contains device profiles
// files which should be imported on startup.
ProfilesDir string
Expand Down

0 comments on commit 457577c

Please sign in to comment.