Skip to content

Commit

Permalink
feat(iot): anonymous devices support (#1523)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémy Léone <[email protected]>
  • Loading branch information
scaleway-bot and remyleone authored Nov 12, 2020
1 parent 7ca297a commit 3e0a8fb
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ARGS:
name=<generated> Device name
hub-id ID of the device's hub
[allow-insecure] Allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones
[allow-multiple-connections] Allow multiple physical devices to connect with this device's credentials
[message-filters.publish.policy] (unknown | accept | reject)
[message-filters.publish.topics.{index}]
[message-filters.subscribe.policy] (unknown | accept | reject)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ ARGS:
device-id Device ID
[name] Device name
[allow-insecure] Allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones
[allow-multiple-connections] Allow multiple physical devices to connect with this device's credentials
[message-filters.publish.policy] (unknown | accept | reject)
[message-filters.publish.topics.{index}]
[message-filters.subscribe.policy] (unknown | accept | reject)
Expand Down
17 changes: 17 additions & 0 deletions internal/namespaces/iot/v1beta1/iot_cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,9 @@ func iotDeviceList() *core.Command {
{
FieldName: "AllowInsecure",
},
{
FieldName: "AllowMultipleConnections",
},
{
FieldName: "MessageFilters",
},
Expand Down Expand Up @@ -573,6 +576,13 @@ func iotDeviceCreate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "allow-multiple-connections",
Short: `Allow multiple physical devices to connect with this device's credentials`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "message-filters.publish.policy",
Required: false,
Expand Down Expand Up @@ -673,6 +683,13 @@ func iotDeviceUpdate() *core.Command {
Deprecated: false,
Positional: false,
},
{
Name: "allow-multiple-connections",
Short: `Allow multiple physical devices to connect with this device's credentials`,
Required: false,
Deprecated: false,
Positional: false,
},
{
Name: "message-filters.publish.policy",
Required: false,
Expand Down

0 comments on commit 3e0a8fb

Please sign in to comment.