Skip to content

requestSettings()

Arnd edited this page Apr 20, 2017 · 1 revision

requestSettings(Index);

This function will send a single request to re-read the device's settings. The settings are first read during class instantiation and the only way that they can change is if another program explicitly overwrites them. The index starts at 0 and zeros are returned if the index is out of bounds. The settings are stored within the library and can be retrieved using readSettings().


Example:

CubigelClass Cubigel(&Serial1);// Instantiate with fridge on HW1 //

...

void setup() {
Cubigel.requestSettings(0); // re-read the settings
} // of setup()
Clone this wiki locally