mirror of https://github.com/ARMmbed/mbed-os.git
NetworkInterface: remove dhcp and static ip methods
These use cases are already supported by NetworkInterface class via set_dhcp, and set_network.pull/3975/head
parent
0fe1246bf4
commit
63f0ff1b49
|
|
@ -94,22 +94,6 @@ public:
|
|||
*/
|
||||
virtual int connect() = 0;
|
||||
|
||||
/** Sends DHCP request
|
||||
*
|
||||
* @param timeout Request timeout in ms
|
||||
* @return NSAPI_ERROR_OK in case of success, error code otherwise
|
||||
*/
|
||||
virtual int start_dhcp(unsigned int timeout = 15000) = 0;
|
||||
|
||||
/** Starts the interface with static IP
|
||||
*
|
||||
* @param ip Static IP to use (in XYZ.XYZ.XYZ.XYZ format)
|
||||
* @param netmask Network mask to use (in XYZ.XYZ.XYZ.XYZ format)
|
||||
* @param gw Gateway IP address (in XYZ.XYZ.XYZ.XYZ format)
|
||||
* @return NSAPI_ERROR_OK in case of success, error code otherwise
|
||||
*/
|
||||
virtual int start_static_ip(const char *ip, const char *netmask, const char *gw) = 0;
|
||||
|
||||
/** Stop the interface
|
||||
*
|
||||
* @return 0 on success, negative error code on failure
|
||||
|
|
|
|||
Loading…
Reference in New Issue