Re: Can't stay connected to wifi?!
Posted: Mon Feb 23, 2015 11:33 am
OK I did some test on my 2 esp-12, which loose connection on a regular basis and your right if I choose mode3 SOFTAP I can see 2 new AP,s (not what I want) but I don't see AP's for the 2 esp01's that have a stable connection, that got me thinking .. then I remembered what I did when I set up the 2 esp01's I set them up (without knowing exactly what I was doing) as follows :
wifi.setmode(3)
wifi.setmode(wifi.STATION)
wifi.sta.config("myssid","mypassword")
So for some reason initially including the line wifi.setmode(3) then I guess over-writing with wifi.setmode(wifi.STATION) does not make a AP but achieves wifi disconnection stability, so I tried this on my 2 esp-12's this morning at 9am its now 4.30pm and I just logged in and there still connected, believe me that's the first time they have stayed connected longer than 10 minutes, now I cannot see any AP's other than my wifi so I assume there connected in STATION mode but with no disconnection issues, so let me know if i'am still creating some security problem, thanks. OBTW still using 0.9.2 firmware.
wifi.setmode(3)
wifi.setmode(wifi.STATION)
wifi.sta.config("myssid","mypassword")
So for some reason initially including the line wifi.setmode(3) then I guess over-writing with wifi.setmode(wifi.STATION) does not make a AP but achieves wifi disconnection stability, so I tried this on my 2 esp-12's this morning at 9am its now 4.30pm and I just logged in and there still connected, believe me that's the first time they have stayed connected longer than 10 minutes, now I cannot see any AP's other than my wifi so I assume there connected in STATION mode but with no disconnection issues, so let me know if i'am still creating some security problem, thanks. OBTW still using 0.9.2 firmware.