MeshStateStore
interface MeshStateStore
Persistence SPI for BLE Mesh network state.
Mesh network state (sequence numbers, IV Index, keys) MUST survive application restarts. Loss of sequence numbers means permanent exclusion from the mesh network due to replay protection.
Implement this interface with your platform's secure storage:
Android: DataStore, SharedPreferences, or EncryptedSharedPreferences
iOS: Keychain or UserDefaults
JVM: File-based storage
For testing, use InMemoryMeshStateStore.