NNN50 WIFI_API library
Dependents: NNN50_CE_Test_UDP NNN50_linux_firmware NNN50_SoftAP_HelloWorld NNN50_BLEWIFISensor ... more
This is mbed compatible EthernetInterface lib exclude for Delta DFCM-NNN50 platform.
Additional information and examples can be found in mbed Handbook
Diff: WIFIDevice.h
- Revision:
- 9:32d6cd2f8456
- Parent:
- 1:be6abb24f013
- Child:
- 25:2008b3bae5ca
--- a/WIFIDevice.h Mon Dec 19 03:03:28 2016 +0000
+++ b/WIFIDevice.h Tue Jan 03 09:35:21 2017 +0000
@@ -36,10 +36,23 @@
M2M_WIFI_SEC_WEP < Security type WEP (40 or 104) OPEN OR SHARED >
M2M_WIFI_SEC_802_1X < Wi-Fi network is secured with WPA/WPA2 Enterprise.IEEE802.1x user-name/password authentication >
* \param SSID name of access point to connect
- * \param PW password of the given SSID
+ * \param PW password of the given SSID
+ * \param wepIndex WEP Index of PW when using M2M_WIFI_SEC_WEP (set between 1 to 4)
*/
- void setNetwork(uint8_t secType, char* SSID, char* PW);
+ void setNetwork(uint8_t secType, char* SSID, char* PW, uint8_t wepIndex = 1);
+ /** Set WPA/WPA2 Enterprise.IEEE802.1x user-name/password authentication.
+ * \param USER user-name of IEEE802.1x authentication
+ * \param PW password of IEEE802.1x authentication
+ */
+ void setLogin(char* USER, char* PW);
+
+ /** Trigger Wi-Fi Protected Setup (WPS).
+ * WPS activation and scan for fixed 120 seconds (support WPA/WPA2 key only).
+ * \return 0 on success (AP connected), a negative number on failure (timeout)
+ */
+ int triggerWPS();
+
/** Enable Access Point in given configuration.
* Set SSID, password, security type and channel in AP mode.
* \param SSID name of access point in AP mode