19 char SSID[SSID_MAX_LEN + 1 ];
20 char PassPhrase[PASS_MAX_LEN + 1];
23 char Security[SEC_HUMAN_MAX_LEN + 1];
24 char Cipher[CIPHER_HUMAN_MAX_LEN + 1];
25 NBWifi::Constants::RadioBand band;
31 #define WIFI_Result_Success (1) 32 #define WIFI_Result_BadPass (-1) 33 #define WIFI_Result_NoAPFound (-2) 34 #define WIFI_Result_BSSID_NotFound (-3) 35 #define WIFI_Result_TimedOut (-4) 37 typedef void ( *ReceiveScanResultFunc )(
const APDefinition & ap);
47 int Connect(
const char * SSID,
const char * Pass,
bool bAdHoc=
false);
48 int Connect(APDefinition & ap);
49 int Connect(APDefinition * pAps);
56 APDefinition * Scan(
const char * ssid=
nullptr);
57 APDefinition * ScanWithSettings(
58 const char * ssid=
nullptr,
59 uint8_t channelCount = 0,
60 const uint16_t * channelList =
nullptr,
62 uint8_t infrastructureType = 0);
72 int StartAsyncScan(ReceiveScanResultFunc * pCallBackFunc,
const char * ssid=
nullptr);
73 int StartAsyncScanWithSettings(
74 ReceiveScanResultFunc * pCallBackFunc,
75 const char * ssid=
nullptr,
76 uint8_t channelCount = 0,
77 const uint16_t * channelList =
nullptr,
79 uint8_t infrastructureType = 0);
85 int GetCurSSID(
char * buf,
int maxlen);
87 int GetCurrentAP(APDefinition & ap);
89 int GetSignalStrength();