This repository was archived by the owner on Sep 16, 2024. It is now read-only.
This repository was archived by the owner on Sep 16, 2024. It is now read-only.
pycom.nvs_get() does not return None if non-existant key #306
Open
Description
LoPy4
On the latest firmware
Pycom MicroPython 1.18.2.r7 [v1.8.6-849-df9f237] on 2019-05-14; LoPy4 with ESP32
>>> import pycom
>>> pycom.nvs_get('anything')==None
ValueError: No matching object for the provided key
so I used a previous version of the firmware
Pycom MicroPython 1.18.2.r2 [v1.8.6-849-5cf02dc] on 2019-03-07; LoPy4 with ESP32
>>>import pycom
>>>pycom.nvs_get('anything')==None
True
>>>
docs state
If a non-existing key is given the returned value will be None.