![]() |
nRF Connect SDK API 3.3.99
|
#include <bridge_storage_manager.h>
Data Structures | |
| struct | BridgedDeviceV2 |
Public Types | |
| using | BridgedDevice = BridgedDeviceV2 |
Public Member Functions | |
| BridgeStorageManager () | |
| bool | Init () |
| Initialize BridgeStorageManager module. | |
| void | FactoryReset () |
| Factory reset the storage. | |
| bool | StoreBridgedDevicesCount (uint8_t count) |
| Store bridged devices count into settings. | |
| bool | LoadBridgedDevicesCount (uint8_t &count) |
| Load bridged devices count from settings. | |
| bool | StoreBridgedDevicesIndexes (uint8_t *indexes, uint8_t count) |
| Store bridged devices indexes into settings. | |
| bool | LoadBridgedDevicesIndexes (uint8_t *indexes, uint8_t maxCount, size_t &count) |
| Load bridged devices indexes from settings. | |
| template<typename T = BridgedDevice> | |
| bool | LoadBridgedDevice (T &device, uint8_t index) |
| Load bridged device from settings. | |
| bool | StoreBridgedDevice (BridgedDevice &device, uint8_t index) |
| Store bridged device into settings. Helper method allowing to store endpoint id, node label and device type of specific bridged device using a single call. | |
| bool | RemoveBridgedDevice (uint8_t bridgedDeviceIndex) |
| Remove bridged device entry from settings. | |
Static Public Member Functions | |
| static BridgeStorageManager & | Instance () |
Static Public Attributes | |
| static constexpr auto | kMaxUserDataSize = 128u |
| static constexpr auto | kBridgePrefix = "br" |
| static constexpr auto | kBridgedDevicesCountPrefix = "brd_cnt" |
| static constexpr auto | kBridgedDevicesIndexesPrefix = "brd_ids" |
| static constexpr auto | kBridgedDevicePrefix = "brd" |
| static constexpr auto | kVersionPrefix = "ver" |
| static constexpr uint8_t | kCurrentVersion = 2 |
| static constexpr auto | kMaxIndexLength = 3 |