@@ -159,34 +159,34 @@ func GetCmdAddModel(cdc *codec.Codec) *cobra.Command {
159
159
"Model Part Number (or sku)" )
160
160
cmd .Flags ().String (FlagCommissioningCustomFlow , "" ,
161
161
`A value of 1 indicates that user interaction with the device (pressing a button, for example) is
162
- required before commissioning can take place. When CommissioningCustomflow is set to a value of 2,
163
- the commissioner SHOULD attempt to obtain a URL which MAY be used to provide an end-user with
164
- the necessary details for how to configure the product for initial commissioning.` )
162
+ required before commissioning can take place. When CommissioningCustomflow is set to a value of 2,
163
+ the commissioner SHOULD attempt to obtain a URL which MAY be used to provide an end-user with
164
+ the necessary details for how to configure the product for initial commissioning.` )
165
165
cmd .Flags ().String (FlagCommissioningCustomFlowURL , "" ,
166
166
`commissioningCustomFlowURL SHALL identify a vendor specific commissioning URL for the
167
- device model when the commissioningCustomFlow field is set to '2'` )
167
+ device model when the commissioningCustomFlow field is set to '2'` )
168
168
cmd .Flags ().String (FlagCommissioningModeInitialStepsHint , "" ,
169
169
`commissioningModeInitialStepsHint SHALL
170
- identify a hint for the steps that can be used to put into commissioning mode a device that
171
- has not yet been commissioned. This field is a bitmap with values defined in the Pairing Hint Table.
172
- For example, a value of 1 (bit 0 is set) indicates
173
- that a device that has not yet been commissioned will enter Commissioning Mode upon a power cycle.` )
170
+ identify a hint for the steps that can be used to put into commissioning mode a device that
171
+ has not yet been commissioned. This field is a bitmap with values defined in the Pairing Hint Table.
172
+ For example, a value of 1 (bit 0 is set) indicates
173
+ that a device that has not yet been commissioned will enter Commissioning Mode upon a power cycle.` )
174
174
cmd .Flags ().String (FlagCommissioningModeInitialStepsInstruction , "" ,
175
175
`commissioningModeInitialStepsInstruction SHALL contain text which relates to specific
176
- values of commissioningModeSecondaryStepsHint. Certain values of CommissioningModeInitialStepsHint,
177
- as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these
178
- values the commissioningModeInitialStepsInstruction SHALL be set` )
176
+ values of commissioningModeSecondaryStepsHint. Certain values of CommissioningModeInitialStepsHint,
177
+ as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these
178
+ values the commissioningModeInitialStepsInstruction SHALL be set` )
179
179
cmd .Flags ().String (FlagCommissioningModeSecondaryStepsHint , "" ,
180
180
`commissioningModeSecondaryStepsHint SHALL identify a hint for steps that can
181
- be used to put into commissioning mode a device that has already been commissioned.
182
- This field is a bitmap with values defined in the Pairing Hint Table. For example, a value of 4 (bit 2 is set)
183
- indicates that a device that has already been commissioned will require the user to visit a
184
- current CHIP Administrator to put the device into commissioning mode.` )
181
+ be used to put into commissioning mode a device that has already been commissioned.
182
+ This field is a bitmap with values defined in the Pairing Hint Table. For example, a value of 4 (bit 2 is set)
183
+ indicates that a device that has already been commissioned will require the user to visit a
184
+ current CHIP Administrator to put the device into commissioning mode.` )
185
185
cmd .Flags ().String (FlagCommissioningModeSecondaryStepsInstruction , "" ,
186
186
`commissioningModeSecondaryStepInstruction SHALL contain text which relates to specific values
187
- of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint,
188
- as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency,
189
- and for these values the commissioningModeSecondaryStepInstruction SHALL be set` )
187
+ of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint,
188
+ as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency,
189
+ and for these values the commissioningModeSecondaryStepInstruction SHALL be set` )
190
190
cmd .Flags ().String (FlagUserManualURL , "" ,
191
191
"URL that contains product specific web page that contains user manual for the device model." )
192
192
cmd .Flags ().String (FlagSupportURL , "" ,
@@ -233,21 +233,25 @@ func GetCmdUpdateModel(cdc *codec.Codec) *cobra.Command {
233
233
partNumber := viper .GetString (FlagPartNumber )
234
234
235
235
commissioningCustomFlowURL := viper .GetString (FlagCommissioningCustomFlowURL )
236
+ commissioningModeInitialStepsInstruction := viper .GetString (FlagCommissioningModeInitialStepsInstruction )
237
+ commissioningModeSecondaryStepsInstruction := viper .GetString (FlagCommissioningModeSecondaryStepsInstruction )
236
238
237
239
userManualURL := viper .GetString (FlagUserManualURL )
238
240
supportURL := viper .GetString (FlagSupportURL )
239
241
productURL := viper .GetString (FlagProductURL )
240
242
241
243
model := types.Model {
242
- VID : vid ,
243
- PID : pid ,
244
- ProductName : productName ,
245
- ProductLabel : productLabel ,
246
- PartNumber : partNumber ,
247
- CommissioningCustomFlowURL : commissioningCustomFlowURL ,
248
- UserManualURL : userManualURL ,
249
- SupportURL : supportURL ,
250
- ProductURL : productURL ,
244
+ VID : vid ,
245
+ PID : pid ,
246
+ ProductName : productName ,
247
+ ProductLabel : productLabel ,
248
+ PartNumber : partNumber ,
249
+ CommissioningCustomFlowURL : commissioningCustomFlowURL ,
250
+ CommissioningModeInitialStepsInstruction : commissioningModeInitialStepsInstruction ,
251
+ CommissioningModeSecondaryStepsInstruction : commissioningModeSecondaryStepsInstruction ,
252
+ UserManualURL : userManualURL ,
253
+ SupportURL : supportURL ,
254
+ ProductURL : productURL ,
251
255
}
252
256
msg := types .NewMsgUpdateModel (model , cliCtx .FromAddress ())
253
257
@@ -266,7 +270,17 @@ func GetCmdUpdateModel(cdc *codec.Codec) *cobra.Command {
266
270
"Model Part Number (or sku)" )
267
271
cmd .Flags ().String (FlagCommissioningCustomFlowURL , "" ,
268
272
`commissioningCustomFlowURL SHALL identify a vendor specific commissioning URL for the
269
- device model when the commissioningCustomFlow field is set to '2'` )
273
+ device model when the commissioningCustomFlow field is set to '2'` )
274
+ cmd .Flags ().String (FlagCommissioningModeInitialStepsInstruction , "" ,
275
+ `commissioningModeInitialStepsInstruction SHALL contain text which relates to specific
276
+ values of commissioningModeSecondaryStepsHint. Certain values of CommissioningModeInitialStepsHint,
277
+ as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency, and for these
278
+ values the commissioningModeInitialStepsInstruction SHALL be set` )
279
+ cmd .Flags ().String (FlagCommissioningModeSecondaryStepsInstruction , "" ,
280
+ `commissioningModeSecondaryStepInstruction SHALL contain text which relates to specific values
281
+ of commissioningModeSecondaryStepsHint. Certain values of commissioningModeSecondaryStepsHint,
282
+ as defined in the Pairing Hint Table, indicate a Pairing Instruction (PI) dependency,
283
+ and for these values the commissioningModeSecondaryStepInstruction SHALL be set` )
270
284
cmd .Flags ().String (FlagUserManualURL , "" ,
271
285
"URL that contains product specific web page that contains user manual for the device model." )
272
286
cmd .Flags ().String (FlagSupportURL , "" ,
@@ -462,18 +476,18 @@ func GetCmdAddModelVersion(cdc *codec.Codec) *cobra.Command {
462
476
encoded in base64 string representation. The digest SHALL have been computed using
463
477
the algorithm specified in OtaChecksumType` )
464
478
cmd .Flags ().String (FlagOtaChecksumType , "" , `Numberic identifier as defined in
465
- IANA Named Information Hash Algorithm Registry for the type of otaChecksum.
466
- For example, a value of 1 would match the sha-256 identifier,
467
- which maps to the SHA-256 digest algorithm` )
479
+ IANA Named Information Hash Algorithm Registry for the type of otaChecksum.
480
+ For example, a value of 1 would match the sha-256 identifier,
481
+ which maps to the SHA-256 digest algorithm` )
468
482
cmd .Flags ().String (FlagMinApplicableSoftwareVersion , "" ,
469
483
`MinApplicableSoftwareVersion should specify the lowest
470
- SoftwareVersion for which this image can be applied` )
484
+ SoftwareVersion for which this image can be applied` )
471
485
cmd .Flags ().String (FlagMaxApplicableSoftwareVersion , "" ,
472
486
`MaxApplicableSoftwareVersion should specify the highest
473
- SoftwareVersion for which this image can be applied` )
487
+ SoftwareVersion for which this image can be applied` )
474
488
cmd .Flags ().String (FlagReleaseNotesURL , "" ,
475
489
`URL that contains product specific web page that contains
476
- release notes for the device model.` )
490
+ release notes for the device model.` )
477
491
478
492
_ = cmd .MarkFlagRequired (FlagVID )
479
493
_ = cmd .MarkFlagRequired (FlagPID )
0 commit comments