I have buffalo 802.11g AP. PC is normally connected and WiFI is working all the time. Using ESP-03 version(0.9.3/0.9.4 SDK), I am playing wtih STA mode and client TCP connection to TCP server in a PC.
in user_init() I did following steps:
- configure station mode
- disable DHCP, set static IP
- disable autoconnect
- connect to AP
- run timer to trigger tcp connection and send data
---
after timeout(outside user_init()), steps are as follows:
- register connected callback and connect to TCP server (espconn_connect())
- on connected callback, register send, receive and disconnect callback
when running this application, connection is very unstable. after checking "osprintf" output, I see that connection to wifi is broken very often. In this case system scans wifi again and again, locates correct channel, and then connection does not succeed. Status of connection is STATION_CONNECT_FAIL, STATION_WRONG_PASSWORD
or STATION_NO_AP_FOUND. After some time it connects again.
Is there some special procedure that could be used to more precisely check(debug) what is going when connecting to AP?
Rgds,
FrenkStatistics: Posted by FrenkR — Sun Dec 21, 2014 1:02 am
]]>