TypeError: can't convert str to int nvs_set
-
Hi problem with nvs_set , I am a bit disappointed to face problem with firmware bug, I want to develop product but I spend more time to resolve problem.
(sysname='LoPy4', nodename='LoPy4', release='1.20.0.rc10', version='v1.9.4-350eac8 on 2019-04-16', machine='LoPy4 with ESP32', lorawan='1.0.2', sigfox='1.0.1')
pycom.nvs_set('test','1234')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: can't convert str to int
-
Hi @rcolistete
Finally after a few erase_all, reflash, now it s working, I use nvram to store wifi ssid and key set by a web page.
It was working fine on wipy but with lopy4 I had a lot of issue.
Thanks for reply
MS
-
Why not use ?
pycom.nvs_set('test', 1234)
See the Pycom documentation :
"pycom.nvs_set(key, value)
Set the value of the specified key in the NVRAM memory area of the external flash. Data stored here is preserved across resets and power cycles. Value can only take 32-bit integers at the moment".