jankop wrote:I use WPS quite often and absolutely without problemsCode: Select allvoid setup() {
Serial.begin(9600);
WiFi.begin();
...
}
void loop() {
...
}
/* Service Wi-Fi Protected Setup with Push Button Configuration */
void StartWpsWaiting(void) {
WiFi.persistent(false);
WiFi.mode(WIFI_STA);
bool RafHo = false;
String HowDelka = "";
/* Wait for access point WPS */
do {
RafHo = WiFi.beginWPSConfig();
HowDelka = WiFi.SSID();
}
while (RafHo == false || HowDelka.length() == 0);
//Serial.println (WiFi.SSID());
//Serial.println (WiFi.psk());
delay(500);
ESP.restart();
}
http://esp8266.fancon.cz/esp8266-web-barometer-arduino/esp8266-bmp280-barometer-thermometer.html
I got it.
The problem was on my router.
I tested it on 2 other routers and it worked!
Thank you!