mirror of
https://github.com/espressif/openthread.git
synced 2026-07-09 05:40:27 +00:00
Configure PSKd as part of starting the commissioner/joiner role. (#547)
This commit is contained in:
+4
-2
@@ -1848,7 +1848,8 @@ void Interpreter::ProcessCommissioner(int argc, char *argv[])
|
||||
|
||||
if (strcmp(argv[0], "start") == 0)
|
||||
{
|
||||
otCommissionerStart();
|
||||
VerifyOrExit(argc > 1, error = kThreadError_Parse);
|
||||
otCommissionerStart(argv[1]);
|
||||
}
|
||||
else if (strcmp(argv[0], "stop") == 0)
|
||||
{
|
||||
@@ -1871,7 +1872,8 @@ void Interpreter::ProcessJoiner(int argc, char *argv[])
|
||||
|
||||
if (strcmp(argv[0], "start") == 0)
|
||||
{
|
||||
otJoinerStart();
|
||||
VerifyOrExit(argc > 1, error = kThreadError_Parse);
|
||||
otJoinerStart(argv[1]);
|
||||
}
|
||||
else if (strcmp(argv[0], "stop") == 0)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user