I have been trying to communicate an android smart phone (also a laptop with Windows 10) for several days, but I can only link to ESP8266 in STA + AP mode with some problems .
I have tried with two different boards, both are clone Wemos D1 R2. For the test I'm going to show, I used the WifiAccessPoint sample program. The Arduino IDE is 1.6.12 and the Core of ESP8266 is 2.3.0. Before performing the test I deleted the entire flash to avoid problems with other configurations. I added the WiFi.printDiag (Serial) line so that the configuration will be visible.
The IDE configuration is:
- Board: Generic ESP8266 module.
Flash mode: QIO.
Flash Frecuency: 40 MHz.
CPU Frecuency: 80 MHz.
Flash size: 4 M (3 M SPIFFS).
Debug port: Serial.
Debug Level: All.
Reset method: Nodemcu.
Configuring access point...[AP] IP config Invalid resetting...
[APConfig] local_ip: 192.168.244.1 gateway: 192.168.244.1 subnet: 255.255.255.0
[APConfig] DHCP IP start: 192.168.244.100
[APConfig] DHCP IP end: 192.168.244.200
[APConfig] IP config Invalid?!
[AP] softAPConfig failed!
Mode: AP
PHY mode: N
Channel: 1
AP id: 0
Status: 255
Auto connect: 1
SSID (0):
Passphrase (0):
BSSID set: 0
AP IP address: 0.0.0.0
HTTP server started
add if1
dhcp server start:(ip:192.168.244.1,mask:255.255.255.0,gw:192.168.244.1)
bcn 100
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
"Wifi evt: 7" is repeated every 1 s approximately, although sometimes stop and then several lines appear together.
When I try to connect the smart phone presents this result:
wifi evt: 7
wifi evt: 7
add 1
aid 1
station: **:**:**:**:**:** join, AID = 1 (Correct mac address)
wifi evt: 5
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
wifi evt: 7
station: **:**:**:**:**:** leave, AID = 1
rm 1
wifi evt: 6
wifi evt: 7
wifi evt: 7
When is in STA + AP mode, connection is achieved after several attempts and also access the Web server, although the "Wifi evt: 7" events still occur at lower frequency.
Has this happened to anyone?
Do you know any solution?
Thanks for the attention.