- Mon Nov 14, 2016 2:02 pm
#58148
Hi blupassat, your mention of "Hello world" suggests you are new to Esp-Basic, so I suggest you don't rename your scripts.
By default Esp_Basic loads /default.bas, and I suggest you just leave things at that default name until you have a need to do different.
Don't think of the ESP as your storage device for different scripts, cos if it goes belly-up you are going to lose them all.
Keep all your scripts on your browser computer.
Just save them as text files with the .txt extension, so they can easily and quickly be edited using Notepad or similar. You don't really need to be editing them on computer, just copying and pasting to and from them.
Load scripts into the Esp_Basic editor by select all and copying from the computer text files, then pasting into the browser edit page... and although you obviously need to then click SAVE in the edit window to upload an edited script into the device, you should periodically do a Select All and Copy from the browser edit page back to your computer text file.
By doing things this way, every time you copy and paste a script into the edit window then save it and run it, you will still be working with default.bas. So whenever the ESP reboots, it will be reloading your last used default.bas, rather than losing track of whatever your last renamed script was before the reboot.
So as far as your new Hello World script is concerned, stick with default.bas when saving it in the browser to the ESP, then copy and paste to save it to whatever text file you wish to call it on the computer.