File tree Expand file tree Collapse file tree
all-clusters-app/nrfconnect
light-switch-app/nrfconnect
pump-controller-app/nrfconnect Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -266,6 +266,9 @@ CHIP_ERROR AppTask::Init()
266266 initParams.endpointNativeParams = static_cast <void *>(&nativeParams);
267267#endif
268268
269+ gExampleDeviceInfoProvider .SetStorageDelegate (initParams.persistentStorageDelegate );
270+ chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
271+
269272 ReturnErrorOnFailure (chip::Server::GetInstance ().Init (initParams));
270273 AppFabricTableDelegate::Init ();
271274
@@ -279,9 +282,6 @@ CHIP_ERROR AppTask::Init()
279282 }
280283#endif
281284
282- gExampleDeviceInfoProvider .SetStorageDelegate (&Server::GetInstance ().GetPersistentStorage ());
283- chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
284-
285285 // We only have network commissioning on endpoint 0.
286286 emberAfEndpointEnableDisable (kNetworkCommissioningEndpointSecondary , false );
287287 ConfigurationMgr ().LogDeviceConfig ();
Original file line number Diff line number Diff line change @@ -63,3 +63,6 @@ CONFIG_PM_PARTITION_SIZE_SETTINGS_STORAGE=0x8000
6363
6464# Increase heap size
6565CONFIG_CHIP_MALLOC_SYS_HEAP_SIZE=32768
66+
67+ # Enable VerifyOrDie logging
68+ CONFIG_CHIP_LOG_VERIFY_OR_DIE=y
Original file line number Diff line number Diff line change @@ -247,6 +247,10 @@ CHIP_ERROR AppTask::Init()
247247 initParams.operationalKeystore = &sPSAOperationalKeystore ;
248248#endif
249249 (void ) initParams.InitializeStaticResourcesBeforeServerInit ();
250+
251+ gExampleDeviceInfoProvider .SetStorageDelegate (initParams.persistentStorageDelegate );
252+ chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
253+
250254 initParams.dataModelProvider = chip::app::CodegenDataModelProviderInstance (initParams.persistentStorageDelegate );
251255 initParams.testEventTriggerDelegate = &sTestEventTriggerDelegate ;
252256 ReturnErrorOnFailure (chip::Server::GetInstance ().Init (initParams));
@@ -262,9 +266,6 @@ CHIP_ERROR AppTask::Init()
262266 }
263267#endif
264268
265- gExampleDeviceInfoProvider .SetStorageDelegate (&Server::GetInstance ().GetPersistentStorage ());
266- chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
267-
268269 ConfigurationMgr ().LogDeviceConfig ();
269270 PrintOnboardingCodes (RendezvousInformationFlags (RendezvousInformationFlag::kBLE ));
270271
Original file line number Diff line number Diff line change @@ -55,3 +55,6 @@ CONFIG_CHIP_FACTORY_DATA_BUILD=y
5555
5656# Enable the Read Client for binding purposes
5757CONFIG_CHIP_ENABLE_READ_CLIENT=y
58+
59+ # Enable VerifyOrDie logging
60+ CONFIG_CHIP_LOG_VERIFY_OR_DIE=y
Original file line number Diff line number Diff line change @@ -284,6 +284,9 @@ CHIP_ERROR AppTask::Init()
284284 (void ) initParams.InitializeStaticResourcesBeforeServerInit ();
285285 VerifyOrDie (gSimpleAttributePersistence .Init (initParams.persistentStorageDelegate ) == CHIP_NO_ERROR );
286286
287+ gExampleDeviceInfoProvider .SetStorageDelegate (initParams.persistentStorageDelegate );
288+ chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
289+
287290 initParams.dataModelProvider = CodegenDataModelProviderInstance (initParams.persistentStorageDelegate );
288291 initParams.testEventTriggerDelegate = &sTestEventTriggerDelegate ;
289292 ReturnErrorOnFailure (chip::Server::GetInstance ().Init (initParams));
@@ -299,8 +302,6 @@ CHIP_ERROR AppTask::Init()
299302 }
300303#endif
301304
302- gExampleDeviceInfoProvider .SetStorageDelegate (&Server::GetInstance ().GetPersistentStorage ());
303- chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
304305 app::SetAttributePersistenceProvider (&gDeferredAttributePersister );
305306
306307 ConfigurationMgr ().LogDeviceConfig ();
Original file line number Diff line number Diff line change @@ -57,3 +57,6 @@ CONFIG_USE_SEGGER_RTT=n
5757# Enable Factory Data feature
5858CONFIG_CHIP_FACTORY_DATA=y
5959CONFIG_CHIP_FACTORY_DATA_BUILD=y
60+
61+ # Enable VerifyOrDie logging
62+ CONFIG_CHIP_LOG_VERIFY_OR_DIE=y
Original file line number Diff line number Diff line change @@ -216,6 +216,10 @@ CHIP_ERROR AppTask::Init()
216216 initParams.operationalKeystore = &sPSAOperationalKeystore ;
217217#endif
218218 (void ) initParams.InitializeStaticResourcesBeforeServerInit ();
219+
220+ gExampleDeviceInfoProvider .SetStorageDelegate (initParams.persistentStorageDelegate );
221+ chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
222+
219223 initParams.dataModelProvider = CodegenDataModelProviderInstance (initParams.persistentStorageDelegate );
220224 initParams.testEventTriggerDelegate = &sTestEventTriggerDelegate ;
221225 ReturnErrorOnFailure (chip::Server::GetInstance ().Init (initParams));
@@ -231,8 +235,6 @@ CHIP_ERROR AppTask::Init()
231235 }
232236#endif
233237
234- gExampleDeviceInfoProvider .SetStorageDelegate (&Server::GetInstance ().GetPersistentStorage ());
235- chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
236238 ConfigurationMgr ().LogDeviceConfig ();
237239 PrintOnboardingCodes (chip::RendezvousInformationFlag (chip::RendezvousInformationFlag::kBLE ));
238240
Original file line number Diff line number Diff line change @@ -53,3 +53,6 @@ CONFIG_CHIP_ENABLE_ICD_SUPPORT=y
5353CONFIG_CHIP_ICD_LIT_SUPPORT=y
5454CONFIG_CHIP_ICD_DSLS_SUPPORT=y
5555CONFIG_CHIP_ICD_SIT_SLOW_POLL_LIMIT=5000
56+
57+ # Enable VerifyOrDie logging
58+ CONFIG_CHIP_LOG_VERIFY_OR_DIE=y
Original file line number Diff line number Diff line change @@ -244,6 +244,10 @@ CHIP_ERROR AppTask::Init()
244244 initParams.operationalKeystore = &sPSAOperationalKeystore ;
245245#endif
246246 (void ) initParams.InitializeStaticResourcesBeforeServerInit ();
247+
248+ gExampleDeviceInfoProvider .SetStorageDelegate (initParams.persistentStorageDelegate );
249+ chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
250+
247251 initParams.dataModelProvider = CodegenDataModelProviderInstance (initParams.persistentStorageDelegate );
248252 initParams.testEventTriggerDelegate = &sTestEventTriggerDelegate ;
249253 ReturnErrorOnFailure (chip::Server::GetInstance ().Init (initParams));
@@ -259,8 +263,6 @@ CHIP_ERROR AppTask::Init()
259263 }
260264#endif
261265
262- gExampleDeviceInfoProvider .SetStorageDelegate (&Server::GetInstance ().GetPersistentStorage ());
263- chip::DeviceLayer::SetDeviceInfoProvider (&gExampleDeviceInfoProvider );
264266 ConfigurationMgr ().LogDeviceConfig ();
265267 PrintOnboardingCodes (chip::RendezvousInformationFlags (chip::RendezvousInformationFlag::kBLE ));
266268
Original file line number Diff line number Diff line change @@ -46,3 +46,6 @@ CONFIG_USE_SEGGER_RTT=n
4646# Enable Factory Data feature
4747CONFIG_CHIP_FACTORY_DATA=y
4848CONFIG_CHIP_FACTORY_DATA_BUILD=y
49+
50+ # Enable VerifyOrDie logging
51+ CONFIG_CHIP_LOG_VERIFY_OR_DIE=y
You can’t perform that action at this time.
0 commit comments