Logic_library
Library for Logic board by RoboticsBrno.
Loading...
Searching...
No Matches
Functions
ArduinoLikeUtils.cpp File Reference
#include "ArduinoLikeUtils.hpp"
#include "Logic.hpp"

Functions

void saveInt (const std::string &name, int value)
 Saves an integer into the persisent NVS storage. More...
 
int loadInt (const std::string &name, int defaultVal)
 Loads an integer from the persistent NVS storage. More...
 

Function Documentation

◆ loadInt()

int loadInt ( const std::string &  name,
int  defaultVal = 0 
)

Loads an integer from the persistent NVS storage.

Parameters
namename of the value
defaultValdefault value returned when the name does not exist
Returns
int

◆ saveInt()

void saveInt ( const std::string &  name,
int  value 
)

Saves an integer into the persisent NVS storage.

Parameters
namename of the value
value