Customized
Dependents: MurataTypeYD_RPC_Sample
Fork of SNICInterface_mod by
Diff: SNIC_WifiInterface.h
- Revision:
- 31:15c22824cc46
- Parent:
- 29:6a0ba999597d
- Child:
- 39:a1233ca02edf
--- a/SNIC_WifiInterface.h Tue May 27 01:33:04 2014 +0000 +++ b/SNIC_WifiInterface.h Thu May 29 03:23:21 2014 +0000 @@ -30,6 +30,7 @@ /** Interface class for using SNIC UART. */ class C_SNIC_WifiInterface : public C_MurataObject { + public: /** Constructor @param tx mbed pin to use for tx line of Serial interface @@ -121,27 +122,16 @@ */ 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 - */ - char* getMACAddress(); - - /** Get the IP address of your Ethernet interface - * \return a pointer to a string containing the IP address - */ - char* getIPAddress(); - - /** Get the Gateway address of your Ethernet interface - * \return a pointer to a string containing the Gateway address - */ - char* getGateway(); - - /** Get the Network mask of your Ethernet interface - * \return a pointer to a string containing the Network mask - */ - char* getNetworkMask(); -#endif + /** Set IP configuration + @param is_DHCP true:DHCP false:static IP. + @param ip_p Pointer of strings of IP address.(null terminate). + @param mask_p Pointer of strings of Netmask.(null terminate). + @param gateway_p Pointer of strings of gateway address.(null terminate). + @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 setIPConfig( bool is_DHCP, const char *ip_p=NULL, const char *mask_p=NULL, const char *gateway_p=NULL ); private: PinName mUART_tx;