Fix NetworkInterface::set_default_parameters binary compatibility

pull/9472/head
Ari Parkkila 2019-01-28 03:27:10 -08:00
parent 95839662c6
commit 52ee61e1ae
3 changed files with 36 additions and 33 deletions

View File

@ -39,17 +39,6 @@ public:
*/ */
static CellularBase *get_default_instance(); static CellularBase *get_default_instance();
/** Set default parameters on a cellular interface.
*
* A cellular interface instantiated directly or using
* CellularBase::get_default_instance() is initially unconfigured.
* This call can be used to set the default parameters that would
* have been set if the interface had been requested using
* NetworkInterface::get_default_instance() (see nsapi JSON
* configuration).
*/
virtual void set_default_parameters();
/** Set the cellular network credentials. /** Set the cellular network credentials.
* *
* Please check documentation of connect() for default behavior of APN settings. * Please check documentation of connect() for default behavior of APN settings.
@ -148,6 +137,18 @@ protected:
static CellularBase *get_target_default_instance(); static CellularBase *get_target_default_instance();
#endif //!defined(DOXYGEN_ONLY) #endif //!defined(DOXYGEN_ONLY)
public:
/** Set default parameters on a cellular interface.
*
* A cellular interface instantiated directly or using
* CellularBase::get_default_instance() is initially unconfigured.
* This call can be used to set the default parameters that would
* have been set if the interface had been requested using
* NetworkInterface::get_default_instance() (see nsapi JSON
* configuration).
*/
virtual void set_default_parameters();
}; };
#endif //CELLULAR_BASE_H #endif //CELLULAR_BASE_H

View File

@ -84,17 +84,6 @@ public:
*/ */
static NetworkInterface *get_default_instance(); static NetworkInterface *get_default_instance();
/** Set default parameters on an interface.
*
* A network interface instantiated directly or using calls such as
* WiFiInterface::get_default_instance() is initially unconfigured.
* This call can be used to set the default parameters that would
* have been set if the interface had been requested using
* NetworkInterface::get_default_instance() (see nsapi JSON
* configuration).
*/
virtual void set_default_parameters();
/** Get the local MAC address. /** Get the local MAC address.
* *
* Provided MAC address is intended for info or debug purposes and * Provided MAC address is intended for info or debug purposes and
@ -359,6 +348,18 @@ protected:
*/ */
static NetworkInterface *get_target_default_instance(); static NetworkInterface *get_target_default_instance();
#endif //!defined(DOXYGEN_ONLY) #endif //!defined(DOXYGEN_ONLY)
public:
/** Set default parameters on an interface.
*
* A network interface instantiated directly or using calls such as
* WiFiInterface::get_default_instance() is initially unconfigured.
* This call can be used to set the default parameters that would
* have been set if the interface had been requested using
* NetworkInterface::get_default_instance() (see nsapi JSON
* configuration).
*/
virtual void set_default_parameters();
}; };
#endif #endif

View File

@ -40,17 +40,6 @@ public:
*/ */
static WiFiInterface *get_default_instance(); static WiFiInterface *get_default_instance();
/** Set default parameters on a Wi-Fi interface.
*
* A Wi-Fi interface instantiated directly or using
* WiFiInterface::get_default_instance() is initially unconfigured.
* This call can be used to set the default parameters that would
* have been set if the interface had been requested using
* NetworkInterface::get_default_instance() (see nsapi JSON
* configuration).
*/
virtual void set_default_parameters();
/** Set the Wi-Fi network credentials. /** Set the Wi-Fi network credentials.
* *
* @param ssid Name of the network to connect to. * @param ssid Name of the network to connect to.
@ -134,6 +123,18 @@ protected:
*/ */
static WiFiInterface *get_target_default_instance(); static WiFiInterface *get_target_default_instance();
#endif //!defined(DOXYGEN_ONLY) #endif //!defined(DOXYGEN_ONLY)
public:
/** Set default parameters on a Wi-Fi interface.
*
* A Wi-Fi interface instantiated directly or using
* WiFiInterface::get_default_instance() is initially unconfigured.
* This call can be used to set the default parameters that would
* have been set if the interface had been requested using
* NetworkInterface::get_default_instance() (see nsapi JSON
* configuration).
*/
virtual void set_default_parameters();
}; };
#endif #endif