W60X_Arduino: WiFiGenericClass Class Reference

Arduino W60X

W60X_Arduino
WiFiGenericClass Class Reference

Inherited by WiFiClass.

Public Member Functions

WiFiMode_t getMode ()
 This function is used to Get the WiFi's work mode.. More...
 
int hostByName (const char *aHostname, IPAddress &aResult)
 This function is used to resolve hostname . More...
 
int hostByName (const char *aHostname, IPAddress &aResult, uint32_t timeout_ms)
 This function is used to resolve hostname . More...
 

Member Function Documentation

◆ getMode()

WiFiMode_t WiFiGenericClass::getMode ( )

This function is used to Get the WiFi's work mode..

Returns
enum of WiFiMode: WIFI_OFF, WIFI_STA or WIFI_AP
Note

◆ hostByName() [1/2]

int WiFiGenericClass::hostByName ( const char *  aHostname,
IPAddress aResult 
)

This function is used to resolve hostname .

Parameters
[in]aHostnameThe hostname which you want to resolve.
[out]aResultThe result of resove the hostname.
Returns
1 - success, 0 - failure.
Note

◆ hostByName() [2/2]

int WiFiGenericClass::hostByName ( const char *  aHostname,
IPAddress aResult,
uint32_t  timeout_ms 
)

This function is used to resolve hostname .

Parameters
[in]aHostnameThe hostname which you want to resolve.
[in]timeout_msThe timeout when resolve.
[out]aResultThe result of resove the hostname.
Returns
1 - success, 0 - failure.
Note
Generated by   doxygen 1.8.14