Magic! Thank you very much, Marcus.
What I did:
- Set ESP to flash mode + burn the firmware.
- Reboot the ESP into flash mode again and run 'pio run -t uploadfs' from root folder of the project when the .ino file is open.
- Reboot the ESP normally. Indeed, no configs needed and SPIFFS is ok now.
Guys, I got new computer, so started with old problems :)
The problem above was solved with old computer (gone).
In the new computer
pio run -t buildfs completed with:
Building in release mode Warning! '-Wl,-T' option for specifying linker scripts is deprecated. Please use 'board_build.ldscript' option in your 'platformio.ini' file. Building file system image from 'Data' directory to .pio\build\esp12e\spiffs.bin *** [.pio\build\esp12e\spiffs.bin] Error 148
Searching didn't help. The only mention is for different ESP module type. My platformio.ini:
[env:esp12e] platform = espressif8266 board = esp12e framework = arduino build_flags = -Wl,-Teagle.flash.4m.ld
build_flags = -Wl,-Teagle.flash.4m.ldwith
board_build.ldscript = eagle.flash.4m1m.ld
Hi Everyone. i am guessing there is a solution for this problem but I dont know it yet, well I hope. I created a property of a node, this property is set like this advertise("tdelay").setName("Delay").setFormat("10:1800").setRetained(true).setDatatype("integer").settable(); and it works. but when my device reboots the value is lost, even when the mqtt broker keeps the info I guess because "setRetained(true)". maybe is necessary load the value from mqtt when the device reboots? is there a way to do that? or maybe save the value in the config file? I hope you can tell me if there is a way ?
another question I dont get why this "setFormat("10:1800")" is this attribute do something or I can ignore it.
thanks a lot again