File tree 4 files changed +14
-57
lines changed
4 files changed +14
-57
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -107,6 +107,13 @@ id):
107
107
$ app add 9050 (vendor id 9050)
108
108
$ app remove 1
109
109
110
+
111
+ You can also install or uninstall the app by using commands:
112
+
113
+ $ app install 65521 32768
114
+ $ app uninstall 65521 32768
115
+
116
+
110
117
As an app platform, local apps can be used to facilitate commissioning using
111
118
their AccountLogin clusters. The dummy apps have hardcoded setup codes - on a
112
119
real device, these apps would communicate with a cloud service to obtain the
Original file line number Diff line number Diff line change @@ -55,8 +55,6 @@ using namespace chip::AppPlatform;
55
55
using namespace chip ::app::Clusters;
56
56
using namespace chip ::Protocols::UserDirectedCommissioning;
57
57
58
- ContentAppFactoryImpl gFactory ;
59
-
60
58
#if CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE
61
59
class MyUserPrompter : public UserPrompter
62
60
{
@@ -288,6 +286,7 @@ MyPostCommissioningListener gMyPostCommissioningListener;
288
286
#endif // CHIP_DEVICE_CONFIG_ENABLE_BOTH_COMMISSIONER_AND_COMMISSIONEE
289
287
290
288
#if CHIP_DEVICE_CONFIG_APP_PLATFORM_ENABLED
289
+ ContentAppFactoryImpl gFactory ;
291
290
292
291
ContentAppFactoryImpl * GetContentAppFactoryImpl ()
293
292
{
Original file line number Diff line number Diff line change @@ -220,6 +220,12 @@ void CommissionerDiscoveryController::InternalOk()
220
220
return ;
221
221
}
222
222
223
+ if (mAppInstallationService == nullptr )
224
+ {
225
+ ChipLogError (AppServer, " UX InternalOk: no app installation service" );
226
+ return ;
227
+ }
228
+
223
229
if (!mAppInstallationService ->LookupTargetContentApp (client->GetVendorId (), client->GetProductId ())) {
224
230
ChipLogDetail (AppServer, " UX InternalOk: app not installed." );
225
231
You can’t perform that action at this time.
0 commit comments