Skip to content

Commit

Permalink
[python]:Disable BCM in command open-commissioning-window (#9942)
Browse files Browse the repository at this point in the history
  • Loading branch information
yufengwangca authored Sep 27, 2021
1 parent 50ad13f commit 242a197
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/controller/python/chip-device-ctrl.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,7 @@ def do_opencommissioningwindow(self, line):
Options:
-t Timeout (in seconds)
-o Option [OriginalSetupCode = 0, TokenWithRandomPIN = 1, TokenWithProvidedPIN = 2]
-o Option [TokenWithRandomPIN = 1, TokenWithProvidedPIN = 2]
-d Discriminator Value
-i Iteration
Expand All @@ -875,13 +875,17 @@ def do_opencommissioningwindow(self, line):
parser.add_argument(
"-t", type=int, default=0, dest='timeout')
parser.add_argument(
"-o", type=int, default=0, dest='option')
"-o", type=int, default=1, dest='option')
parser.add_argument(
"-i", type=int, default=0, dest='iteration')
parser.add_argument(
"-d", type=int, default=0, dest='discriminator')
args = parser.parse_args(arglist[1:])

if args.option < 1 or args.option > 2:
print("Invalid option specified!")
raise ValueError("Invalid option specified")

self.devCtrl.OpenCommissioningWindow(
int(arglist[0]), args.timeout, args.iteration, args.discriminator, args.option)

Expand Down

0 comments on commit 242a197

Please sign in to comment.