RBCX
Library for the RB3204-RBCX board with the ESP32 by RoboticsBrno.
Loading...
Searching...
No Matches
Public Member Functions | List of all members
rb::Nvs Class Reference

#include <RBCXNvs.h>

Public Member Functions

 Nvs (const char *name_space, const char *partition="nvs")
 
 ~Nvs ()
 
 Nvs (const Nvs &)=delete
 
bool existsInt (const char *key)
 Returns true if the key for the int exists in the NVS. More...
 
int getInt (const char *key)
 Returns the int value of the key in the NVS. More...
 
void writeInt (const char *key, int value)
 Writes the int value to the key in the NVS. More...
 
bool existsString (const char *key)
 Returns true if the key for the string exists in the NVS. More...
 
std::string getString (const char *key)
 Returns the string value of the key in the NVS. More...
 
void writeString (const char *key, const std::string &value)
 Writes the string value to the key in the NVS. More...
 
void commit ()
 Commits the changes to the NVS (it nessecary to call this to save the changes) More...
 

Constructor & Destructor Documentation

◆ Nvs() [1/2]

rb::Nvs::Nvs ( const char *  name_space,
const char *  partition = "nvs" 
)

◆ ~Nvs()

rb::Nvs::~Nvs ( )

◆ Nvs() [2/2]

rb::Nvs::Nvs ( const Nvs )
delete

Member Function Documentation

◆ commit()

void rb::Nvs::commit ( )

Commits the changes to the NVS (it nessecary to call this to save the changes)

◆ existsInt()

bool rb::Nvs::existsInt ( const char *  key)

Returns true if the key for the int exists in the NVS.

◆ existsString()

bool rb::Nvs::existsString ( const char *  key)

Returns true if the key for the string exists in the NVS.

◆ getInt()

int rb::Nvs::getInt ( const char *  key)

Returns the int value of the key in the NVS.

◆ getString()

std::string rb::Nvs::getString ( const char *  key)

Returns the string value of the key in the NVS.

◆ writeInt()

void rb::Nvs::writeInt ( const char *  key,
int  value 
)

Writes the int value to the key in the NVS.

◆ writeString()

void rb::Nvs::writeString ( const char *  key,
const std::string &  value 
)

Writes the string value to the key in the NVS.


The documentation for this class was generated from the following files: