read

Function read 

Source
pub fn read(key: &[u8], buf: &mut [u8]) -> Result<usize>
Expand description

Read a value from NVS into buf. key must be \0-terminated.

Returns the number of bytes actually read, which may be less than buf.len() if the stored value is shorter.

ยงErrors

Returns Error::NotRegistered if the key does not exist, or another error if the read fails.