@@ -34,67 +34,35 @@ class Unpair : public PairingCommand
34
34
{}
35
35
};
36
36
37
- class PairQRCode : public PairingCommand
37
+ class PairCode : public PairingCommand
38
38
{
39
39
public:
40
- PairQRCode (CredentialIssuerCommands * credsIssuerConfig) :
41
- PairingCommand (" qrcode " , PairingMode::QRCode , PairingNetworkType::None, credsIssuerConfig)
40
+ PairCode (CredentialIssuerCommands * credsIssuerConfig) :
41
+ PairingCommand (" code " , PairingMode::Code , PairingNetworkType::None, credsIssuerConfig)
42
42
{}
43
43
};
44
44
45
- class PairQRCodePase : public PairingCommand
45
+ class PairCodePase : public PairingCommand
46
46
{
47
47
public:
48
- PairQRCodePase (CredentialIssuerCommands * credsIssuerConfig) :
49
- PairingCommand (" qrcode -paseonly" , PairingMode::QRCodePaseOnly , PairingNetworkType::None, credsIssuerConfig)
48
+ PairCodePase (CredentialIssuerCommands * credsIssuerConfig) :
49
+ PairingCommand (" code -paseonly" , PairingMode::CodePaseOnly , PairingNetworkType::None, credsIssuerConfig)
50
50
{}
51
51
};
52
52
53
- class PairQRCodeWifi : public PairingCommand
53
+ class PairCodeWifi : public PairingCommand
54
54
{
55
55
public:
56
- PairQRCodeWifi (CredentialIssuerCommands * credsIssuerConfig) :
57
- PairingCommand (" qrcode -wifi" , PairingMode::QRCode , PairingNetworkType::WiFi, credsIssuerConfig)
56
+ PairCodeWifi (CredentialIssuerCommands * credsIssuerConfig) :
57
+ PairingCommand (" code -wifi" , PairingMode::Code , PairingNetworkType::WiFi, credsIssuerConfig)
58
58
{}
59
59
};
60
60
61
- class PairQRCodeThread : public PairingCommand
61
+ class PairCodeThread : public PairingCommand
62
62
{
63
63
public:
64
- PairQRCodeThread (CredentialIssuerCommands * credsIssuerConfig) :
65
- PairingCommand (" qrcode-thread" , PairingMode::QRCode, PairingNetworkType::Thread, credsIssuerConfig)
66
- {}
67
- };
68
-
69
- class PairManualCode : public PairingCommand
70
- {
71
- public:
72
- PairManualCode (CredentialIssuerCommands * credsIssuerConfig) :
73
- PairingCommand (" manualcode" , PairingMode::ManualCode, PairingNetworkType::None, credsIssuerConfig)
74
- {}
75
- };
76
-
77
- class PairManualCodePase : public PairingCommand
78
- {
79
- public:
80
- PairManualCodePase (CredentialIssuerCommands * credsIssuerConfig) :
81
- PairingCommand (" manualcode-paseonly" , PairingMode::ManualCodePaseOnly, PairingNetworkType::None, credsIssuerConfig)
82
- {}
83
- };
84
-
85
- class PairManualCodeWifi : public PairingCommand
86
- {
87
- public:
88
- PairManualCodeWifi (CredentialIssuerCommands * credsIssuerConfig) :
89
- PairingCommand (" manualcode-wifi" , PairingMode::ManualCode, PairingNetworkType::WiFi, credsIssuerConfig)
90
- {}
91
- };
92
-
93
- class PairManualCodeThread : public PairingCommand
94
- {
95
- public:
96
- PairManualCodeThread (CredentialIssuerCommands * credsIssuerConfig) :
97
- PairingCommand (" manualcode-thread" , PairingMode::ManualCode, PairingNetworkType::Thread, credsIssuerConfig)
64
+ PairCodeThread (CredentialIssuerCommands * credsIssuerConfig) :
65
+ PairingCommand (" code-thread" , PairingMode::Code, PairingNetworkType::Thread, credsIssuerConfig)
98
66
{}
99
67
};
100
68
@@ -229,14 +197,10 @@ void registerCommandsPairing(Commands & commands, CredentialIssuerCommands * cre
229
197
230
198
commands_list clusterCommands = {
231
199
make_unique<Unpair>(credsIssuerConfig),
232
- make_unique<PairQRCode>(credsIssuerConfig),
233
- make_unique<PairQRCodePase>(credsIssuerConfig),
234
- make_unique<PairQRCodeWifi>(credsIssuerConfig),
235
- make_unique<PairQRCodeThread>(credsIssuerConfig),
236
- make_unique<PairManualCode>(credsIssuerConfig),
237
- make_unique<PairManualCodePase>(credsIssuerConfig),
238
- make_unique<PairManualCodeWifi>(credsIssuerConfig),
239
- make_unique<PairManualCodeThread>(credsIssuerConfig),
200
+ make_unique<PairCode>(credsIssuerConfig),
201
+ make_unique<PairCodePase>(credsIssuerConfig),
202
+ make_unique<PairCodeWifi>(credsIssuerConfig),
203
+ make_unique<PairCodeThread>(credsIssuerConfig),
240
204
make_unique<PairBleWiFi>(credsIssuerConfig),
241
205
make_unique<PairBleThread>(credsIssuerConfig),
242
206
make_unique<PairSoftAP>(credsIssuerConfig),
0 commit comments