Chat freely about anything...

User avatar
By lucasromeiro
#82047
jankop wrote:I use WPS quite often and absolutely without problems

Code: 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!
User avatar
By dmax66
#94252 I'm running on the same problem - WiFi.begin() fails because no password is returned by WiFi.psk()

I have a TalkTalk router version Fast5364-3.T8

Of course, if I pass to WiFi.begin() the SSID and the passkey, it succeeds.