Comments (16)
One time more in the field.
But now without disconnect the device.
The device just stopped to work and after turn off and turn on the NVS was cleared.
from arduino-esp32.
Are you being sure to call preferences.end()
after you modify things to ensure it is stored/committed to flash?
from arduino-esp32.
Couple of things:
- The code posted is only part of the overall sketch? There is not shown the
.begin()
nor the.end()
statements. - The code uses, for example,
preferences.getUChar("configFabrica", 170);
which in this form will return the default value you specify of170
if there is an error when doing thegetX()
. If the Preferences namespace it not properly initialized or opened with a.begin()
then this may appear like the NVS has issues.
All the getX()
methods commit to NVS before returning so unless the device resets at that exact time they should be safe.
from arduino-esp32.
Are you being sure to call
preferences.end()
after you modify things to ensure it is stored/committed to flash?
Hi.
Thank you about your comment.
Yes. The end are in a function in the final.
from arduino-esp32.
Couple of things:
- The code posted is only part of the overall sketch? There is not shown the
.begin()
nor the.end()
statements.- The code uses, for example,
preferences.getUChar("configFabrica", 170);
which in this form will return the default value you specify of170
if there is an error when doing thegetX()
. If the Preferences namespace it not properly initialized or opened with a.begin()
then this may appear like the NVS has issues.All the
getX()
methods commit to NVS before returning so unless the device resets at that exact time they should be safe.
Hi.
Thanks about your comment.
Yes is in the setup.
The problem heppening not in the first time when turn of the devie.
The problem start after some hours the device on or when turn on and turn of several times.
from arduino-esp32.
Any chance you can try with newer version? 2.0.17 or 3.0.1? 2.0.2 is really old (and all 2.0.x will be EOL next month).
from arduino-esp32.
Any chance you can try with newer version? 2.0.17 or 3.0.1? 2.0.2 is really old (and all 2.0.x will be EOL next month).
from arduino-esp32.
Any chance you can try with newer version? 2.0.17 or 3.0.1? 2.0.2 is really old (and all 2.0.x will be EOL next month).
Dear me-no-dev, sorry close your comment. The chat is new for me. But update the IDE is not the solution. I think the problem is with the hardware.
from arduino-esp32.
Related Issues (20)
- error: 'virtual int Client::connect(IPAddress, uint16_t)' was hidden [-Werror=overloaded-virtual=] HOT 1
- Preferences documentation error - getBool call definition displays getUChar. HOT 1
- ESP-IDF 5.2.2 Arduino as a component (IDFGH-13064) HOT 2
- NimBLE does not work with Arduino Nano ESP32 HOT 1
- WiFiClient and related macros - troubles when using forward declarations HOT 14
- Add support for Elecrow CrowPanel 7.0".
- invert status never reset on serial0 after having been set to invert once HOT 25
- More than one HTTPS client; Arduino as ESP-IDF component HOT 4
- NeoPixel can crash system. HOT 5
- ppp-modem: reset pulse is too short on A7672G HOT 1
- LittleFS.format(): task_wdt: delete_entry(233): task not found HOT 6
- ESP32-C6 causes connection issues & unexpected reboots when using WiFi + Deep Sleep HOT 14
- ESP_I2S.h: error: 'int read' redeclared as different kind of entity HOT 1
- Very unstable system after migrating to Arduino-ESP32 3.0.01 HOT 17
- ESP to ESP transmission error. HOT 4
- i2s mems reads 34601 HOT 2
- More HardwareSerial UART interrupts HOT 18
- docs: ESP32-S is listed as no having no BLE. Only true for S2 HOT 1
- WifiClientSecure - Connection error after 3600 seconds HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-esp32.