Komut
reasonCode()
Açıklama
Kimlik doğrulama nedeni kodunu döndür.
Sözdizimi
WiFi .reasonCode ()
Parametreler
Yok
İadeler
Kimlik doğrulama nedeni kodu
Misal
…
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
if (status != WL_CONNECTED) {
Serial.print("Reason code: ");
Serial.println(WiFi.reasonCode());
}
// wait 10 seconds for connection:
delay(10000);
}
…
while (status != WL_CONNECTED) {
Serial.print("Attempting to connect to SSID: ");
Serial.println(ssid);
// Connect to WPA/WPA2 network. Change this line if using open or WEP network:
status = WiFi.begin(ssid, pass);
if (status != WL_CONNECTED) {
Serial.print("Reason code: ");
Serial.println(WiFi.reasonCode());
}
// wait 10 seconds for connection:
delay(10000);
}
…
!!!!See Also
- begin()
- end()
- beginAP()
- disconnect()
- config()
- setDNS()
- setHostname()
- setTimeout()
- SSID()
- BSSID()
- RSSI()
- channel()
- encryptionType()
- scanNetworks()
- ping()
- status()
- macAddress()
- firmwareVersion()
- lowPowerMode()
- noLowPowerMode()
- hostByName()
- localIP()
- subnetMask()
- gatewayIP()