From 11c3848081733c09018d8de1a2924684fcbc587c Mon Sep 17 00:00:00 2001 From: krypton36 Date: Wed, 8 Jun 2022 13:39:02 -0700 Subject: [PATCH] Add code-wifi and code-thread commands --- .../commands/pairing/Commands.h | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/examples/darwin-framework-tool/commands/pairing/Commands.h b/examples/darwin-framework-tool/commands/pairing/Commands.h index 4dccd6d52f7d28..1fed642addae64 100644 --- a/examples/darwin-framework-tool/commands/pairing/Commands.h +++ b/examples/darwin-framework-tool/commands/pairing/Commands.h @@ -27,6 +27,18 @@ class PairCode : public PairingCommandBridge PairCode() : PairingCommandBridge("code", PairingMode::Code, PairingNetworkType::None) {} }; +class PairCodeWifi : public PairingCommandBridge +{ +public: + PairCodeWifi() : PairingCommandBridge("code-wifi", PairingMode::Code, PairingNetworkType::WiFi) {} +}; + +class PairCodeThread : public PairingCommandBridge +{ +public: + PairCodeThread() : PairingCommandBridge("code-thread", PairingMode::Code, PairingNetworkType::Thread) {} +}; + class PairWithIPAddress : public PairingCommandBridge { public: @@ -56,9 +68,10 @@ void registerCommandsPairing(Commands & commands) const char * clusterName = "Pairing"; commands_list clusterCommands = { - make_unique(), make_unique(), - make_unique(), make_unique(), - make_unique(), make_unique(), + make_unique(), make_unique(), + make_unique(), make_unique(), + make_unique(), make_unique(), + make_unique(), make_unique(), }; commands.Register(clusterName, clusterCommands);