General area when it fits no where else

Moderator: Mmiscool

User avatar
By iw2fvo
#35257 Thanks very much for the replies.

Let me try from the beginning... to describe all my steps that could be wrong:
*Flashed the ESP_01 flash size=512K
*uploading 343312 bytes @ 0x00000000
*response=OK
*esp power_off
*jumper removed
*terminal connected at 9600 8 n 1
*esp power_on
*terminal display as follow:

ȤlÍÉðbGCýH>l¤ÿæESP Basic 1.60
1
2
3
4
5
6
7
8
9
10
11
12

Failed Wifi Connect
Creating WIFI access point
ESP
APname
APpass
file open failed
Starting Default Program
Done...

* "ESP" shown on my home wifi list.
*esp connected from the wifi list
*192.168.4.1/edit typed on browser
*vars, edit, run, filemngr, open and save shown on the page. ( nothing more on the terminal )

>>> at this point it seems to me that the esp is connected as AP 192.168.4.1 : Is this assumption correct ?

* I wrote :
print "hello"
end
in the edit window
*save button pressed
*saved msg received
*saved displayed at bottom left of the sreen
*terminal shows:
Done...
default/1
default/2
default/3

* run button pressed
*terminal and screen show:
hello %0D
Done...
>>> is this correct ? why have I got %0D after hello?

Is this procedure OK for now ?

Thanks a lot for the assistance.
regards,
Ambrogio
User avatar
By iw2fvo
#35260 I did go on ..
I paste the following on the editor page:

print "Some Graphics"
print
graphics 500 500

gcls

line 10 10 150 150 1
circle 75 100 50 2
rect 200 200 25 50 3
ellipse 400 400 20 50 4

button "Exit" [getMeOutOfHere]
wait

[getMeOutOfHere]
end
* save button pressed
*saved msg displayed
*run button pressed
*terminal shows:
Some Graphics
%0D
*screen just shows:
Some Graphics
%0D Exit " boxed"

I should have some line, circles etc displayed : I do not have them .
Thanks for helping
regards,
Ambrogio
User avatar
By Mmiscool
#35264 Connect the device to your serial port and click the save button in the browser.

You should see it as it writes each line of the program to flash on the serial terminal.
User avatar
By iw2fvo
#35284 Thanks Mmiscool,
I modified the " settings" page and I am now able to connect my Wifi home network.
** Question: how could I swtitch from AP to Station and viceversa ?
I loaded the graphic example , iI got "saved" and after pressing the RUN button I got the colored circle, line etc.
I found that this program is stored in NON Volatile mode: at the ESP power _on if RUN button is pressed I always have the above graphic.
This is what I see on the monitor at pwr_on and subsequent RUN command:
2dOz4ð fb[ù$¼p¬þESP Basic 1.60
1
2
3
4

Connected to
IP address : 192.168.0.107
WIFIname
file open failed
WIFIpass
file open failed
Starting Default Program
Some Graphics

Done...
Some Graphics

Done...
I did copy the GUI example in the editor and then saved it ( got the saved msg ). But at RUN command the Graphic is still shown:

default/1
file open failed
default/2
file open failed
default/3
file open failed
default/4
file open failed
default/5
file open failed
default/6
file open failed
default/7
file open failed
default/8
file open failed
default/9
file open failed
default/10
file open failed
default/11
file open failed
default/12
file open failed
default/13
file open failed
default/14
file open failed
default/15
file open failed
default/16
file open failed
default/17
file open failed
default/18
file open failed
default/19
file open failed
default/20
file open failed
default/21
file open failed
Starting Default Program
Some Graphics

Done...
Some Graphics

***What is the correct procedure to remove and load a new program ?

Thanks
Ambro