Post topics, source code that relate to the Arduino Platform

User avatar
By idontknowwhat
#91432 hey guys,

I hope you can help me as I have asked around a lot and sofar no one was able to help me.

I am building some wifi enabled lamps with ESP07 modules. I have one basestation/server which creates a WIFI network in softAP mode and 5 clients that connect to it in STA mode. All 5 clients run the identical code.

Two days ago 4/5 devices connected to the base station. (I forgot to allow more than 4 connections) Yesterday 2/5 connected and a third one only sporadically. Today only 1/5 connects reliably.

Running WiFi.printDiag(Serial) on the sporadically working clients shows me that they sometimes connect to the AP for a split second, lose the BSSID, get thrown off again and switch to channel 14 for some time. Then the cycle repeates.

When the ESP are made to connect to a different WIFI network (created by an access point or my phone) all devices connect without a problem.

It seems to me as if theres some cached data on the server or client side that blocks the clients to connect. Anybody have an idea?

Thanks in advance!

here the dump from the client:

Code: Select all10:41:12.287 -> Mode: STA
10:41:12.287 -> PHY mode: N
10:41:12.287 -> Channel: 2
10:41:12.287 -> AP id: 0
10:41:12.287 -> Status: 1
10:41:12.287 -> Auto connect: 1
10:41:12.287 -> SSID (15): test1234
10:41:12.287 -> Passphrase (9): hunter222
10:41:12.287 -> BSSID set: 1


10:41:13.389 -> Mode: STA
10:41:13.389 -> PHY mode: N
10:41:13.389 -> Channel: 2
10:41:13.389 -> AP id: 0
10:41:13.389 -> Status: 0
10:41:13.389 -> Auto connect: 1
10:41:13.389 -> SSID (0):
10:41:13.389 -> Passphrase (0):
10:41:13.389 -> BSSID set: 0


10:41:14.387 -> Mode: STA
10:41:14.387 -> PHY mode: N
10:41:14.387 -> Channel: 14
10:41:14.387 -> AP id: 0
10:41:14.387 -> Status: 0
10:41:14.387 -> Auto connect: 1
10:41:14.387 -> SSID (0):
10:41:14.387 -> Passphrase (0):
10:41:14.387 -> BSSID set: 0


10:41:15.384 -> Mode: STA
10:41:15.384 -> PHY mode: N
10:41:15.384 -> Channel: 2
10:41:15.384 -> AP id: 0
10:41:15.384 -> Status: 0
10:41:15.384 -> Auto connect: 1
10:41:15.384 -> SSID (0):
10:41:15.384 -> Passphrase (0):
10:41:15.384 -> BSSID set: 0