File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ class WiFiClass : public NetworkInterface {
17
17
~WiFiClass () {
18
18
}
19
19
20
- bool begin (const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
20
+ int begin (const char *ssid, const char *passphrase, wl_enc_type security = ENC_TYPE_UNKNOWN,
21
21
bool blocking = true ) {
22
22
sta_iface = net_if_get_wifi_sta ();
23
23
netif = sta_iface;
@@ -43,10 +43,10 @@ class WiFiClass : public NetworkInterface {
43
43
NULL , K_FOREVER);
44
44
}
45
45
46
- return true ;
46
+ return status () ;
47
47
}
48
48
49
- bool beginAP (char *ssid, char *passphrase, int channel = WIFI_CHANNEL_ANY,
49
+ int beginAP (char *ssid, char *passphrase, int channel = WIFI_CHANNEL_ANY,
50
50
bool blocking = true ) {
51
51
if (ap_iface != NULL ) {
52
52
return false ;
@@ -76,7 +76,7 @@ class WiFiClass : public NetworkInterface {
76
76
NULL , K_FOREVER);
77
77
}
78
78
79
- return true ;
79
+ return status () ;
80
80
}
81
81
82
82
int status () {
You can’t perform that action at this time.
0 commit comments