wellenvogel/esp32-nmea2000

Save the last selected OBP60 page for a restart after power down

norbert-walter opened this issue · 2 comments

Save the last selected OBP60 page for a restart after power down. The MFD starts then with the old last page.

This has to be done in the OBP60 code.

preferences.begin("obp", false); // Open nonvolatile storage (nvs)
NodeAddress = preferences.getInt("LastNodeAddress", 32); // Read stored last NodeAddress, default 32
preferences.end();