Skip to content

Commit 3e0a8fb

Browse files
feat(iot): anonymous devices support (#1523)
Co-authored-by: Rémy Léone <[email protected]>
1 parent 7ca297a commit 3e0a8fb

File tree

3 files changed

+19
-0
lines changed

3 files changed

+19
-0
lines changed

cmd/scw/testdata/test-all-usage-iot-device-create-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
name=<generated> Device name
1010
hub-id ID of the device's hub
1111
[allow-insecure] Allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones
12+
[allow-multiple-connections] Allow multiple physical devices to connect with this device's credentials
1213
[message-filters.publish.policy] (unknown | accept | reject)
1314
[message-filters.publish.topics.{index}]
1415
[message-filters.subscribe.policy] (unknown | accept | reject)

cmd/scw/testdata/test-all-usage-iot-device-update-usage.golden

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ ARGS:
99
device-id Device ID
1010
[name] Device name
1111
[allow-insecure] Allow plain and server-authenticated SSL connections in addition to mutually-authenticated ones
12+
[allow-multiple-connections] Allow multiple physical devices to connect with this device's credentials
1213
[message-filters.publish.policy] (unknown | accept | reject)
1314
[message-filters.publish.topics.{index}]
1415
[message-filters.subscribe.policy] (unknown | accept | reject)

internal/namespaces/iot/v1beta1/iot_cli.go

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -525,6 +525,9 @@ func iotDeviceList() *core.Command {
525525
{
526526
FieldName: "AllowInsecure",
527527
},
528+
{
529+
FieldName: "AllowMultipleConnections",
530+
},
528531
{
529532
FieldName: "MessageFilters",
530533
},
@@ -573,6 +576,13 @@ func iotDeviceCreate() *core.Command {
573576
Deprecated: false,
574577
Positional: false,
575578
},
579+
{
580+
Name: "allow-multiple-connections",
581+
Short: `Allow multiple physical devices to connect with this device's credentials`,
582+
Required: false,
583+
Deprecated: false,
584+
Positional: false,
585+
},
576586
{
577587
Name: "message-filters.publish.policy",
578588
Required: false,
@@ -673,6 +683,13 @@ func iotDeviceUpdate() *core.Command {
673683
Deprecated: false,
674684
Positional: false,
675685
},
686+
{
687+
Name: "allow-multiple-connections",
688+
Short: `Allow multiple physical devices to connect with this device's credentials`,
689+
Required: false,
690+
Deprecated: false,
691+
Positional: false,
692+
},
676693
{
677694
Name: "message-filters.publish.policy",
678695
Required: false,

0 commit comments

Comments
 (0)