Skip to content

Commit cf0167c

Browse files
committed
Add new WL_AP_FAILED type for failed AP creation result
1 parent 9030320 commit cf0167c

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/WiFi.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ uint8_t WiFiClass::startAP(const char *ssid, uint8_t u8SecType, const void *pvAu
415415
}
416416

417417
if (m2m_wifi_enable_ap(&strM2MAPConfig) < 0) {
418-
_status = WL_CONNECT_FAILED;
418+
_status = WL_AP_FAILED;
419419
return _status;
420420
}
421421
_status = WL_AP_LISTENING;

src/WiFi101.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ typedef enum {
4343
WL_CONNECTION_LOST,
4444
WL_DISCONNECTED,
4545
WL_AP_LISTENING,
46-
WL_AP_CONNECTED
46+
WL_AP_CONNECTED,
47+
WL_AP_FAILED
4748
} wl_status_t;
4849

4950
/* Encryption modes */

0 commit comments

Comments
 (0)