Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: SNIC-httpclient-example SNIC-ntpclient-example
Fork of SNICInterface by
Diff: YDwifiInterface.h
- Revision:
- 6:70f522934032
- Parent:
- 5:ef3befe3edad
- Child:
- 7:e88ccbe0225f
--- a/YDwifiInterface.h Thu Mar 13 08:44:33 2014 +0000
+++ b/YDwifiInterface.h Thu Mar 13 10:33:18 2014 +0000
@@ -10,6 +10,17 @@
*/
class C_YDwifiInterface: public C_YDwifi {
public:
+ /** Wi-Fi status */
+ typedef struct
+ {
+ /** status */
+ E_WIFI_STATUS status;
+ /** Mac address */
+ char mac_address[BSSID_MAC_LENTH];
+ /** SSID */
+ char ssid[SSID_MAX_LENGTH+1];
+ }tagWIFI_STATUS_T;
+
/** Constructor
@param tx mbed pin to use for tx line of Serial interface
@param rx mbed pin to use for rx line of Serial interface
@@ -90,6 +101,14 @@
*/
int getRssi( signed char *rssi_p );
+ /** Get Wi-Fi status
+ @param status_p Pointer of status structure.[output]
+ @return 0 on success, a negative number on failure
+ @note This function is blocked until a returns.
+ When you use it by UI thread, be careful.
+ */
+ int getWifiStatus( tagWIFI_STATUS_T *status_p);
+
#if 0
/** Get the MAC address of your Ethernet interface
* \return a pointer to a string containing the MAC address
