nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ LoadBridgedDevice()

template<typename T = BridgedDevice>
bool Nrf::BridgeStorageManager::LoadBridgedDevice ( T & device,
uint8_t index )

Load bridged device from settings.

If the caller wants to load the optional user data, the mUserData must be set to the valid buffer to store data and mUserDataSize must be set to this data size. On success, the method overrides mUserDataSize with the data size actually obtained from the storage.

Parameters
deviceinstance of bridged device object to be filled with loaded data.
indexindex describing specific bridged device
Returns
true if key has been loaded successfully
false an error occurred