1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-15 00:02:49 +03:00

add function begin without any parameters and add functin psk to return current pre shared kex form sdk config

This commit is contained in:
Pascal Gollor
2015-09-28 16:48:06 +02:00
parent fb2545f72f
commit b13095763d
3 changed files with 29 additions and 0 deletions

View File

@ -58,6 +58,9 @@ public:
int begin(const char* ssid, const char *passphrase = NULL, int32_t channel = 0, uint8_t bssid[6] = NULL);
int begin(char* ssid, char *passphrase = NULL, int32_t channel = 0, uint8_t bssid[6] = NULL);
// Use sdk config to connect.
int begin();
/* Wait for Wifi connection to reach a result
* returns the status reached or disconnect if STA is off
@ -172,6 +175,13 @@ public:
*/
char* SSID();
/*
* Return the current pre shared key associated with the network
*
* return: psk string
*/
const char* psk();
/*
* Return the current bssid / mac associated with the network if configured
*