Skip to content

Commit

Permalink
Add new options for shadow cli
Browse files Browse the repository at this point in the history
  • Loading branch information
sfodagain committed Nov 22, 2023
1 parent 1a37322 commit d2d573e
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions samples/util/cli_args.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ function add_common_mqtt_arguments(yargs) {
type: 'string',
required: false
})
.option('mqtt_version', {
alias: 'V',
default: 3,
description: 'MQTT version to use.',
type: 'number',
required: false
})
}

/*
Expand Down Expand Up @@ -185,6 +192,17 @@ function add_shadow_arguments(yargs) {
type: 'string',
default: 'color'
})
.option('shadow_value', {
alias: 'u',
description: 'Value for shadow property',
type: 'string',
default: 'on'
})
.option('shadow_name', {
alias: 'N',
description: 'Use named shadow with specified name',
type: 'string'
})
.option('thing_name', {
alias: 'n',
description: 'The name assigned to your IoT Thing',
Expand Down

0 comments on commit d2d573e

Please sign in to comment.