18 #ifndef L3IP_INTERFACE_H 19 #define L3IP_INTERFACE_H 23 #include "OnboardNetworkStack.h" virtual NetworkStack * get_stack()
Provide access to the underlying stack.
L3IPInterface(L3IP &l3ip=L3IP::get_default_instance(), OnboardNetworkStack &stack=OnboardNetworkStack::get_default_instance())
Create an L3IP-based network interface.
Representation of a stack's view of an interface.
virtual const char * get_netmask()
Get the local network mask.
virtual const char * get_ip_address()
Get the local IP address.
virtual void attach(mbed::Callback< void(nsapi_event_t, intptr_t)> status_cb)
Register callback for status reporting.
signed int nsapi_error_t
Type used to represent error codes.
virtual nsapi_error_t disconnect()
Stop the interface.
virtual nsapi_error_t set_blocking(bool blocking)
Set blocking status of connect() which by default should be blocking.
mbed OS API for onboard IP stack abstraction
#define NSAPI_IPv4_SIZE
Size of IPv4 representation.
This interface should be used to abstract low level access to networking hardware All operations rece...
Common interface that is shared between network devices.
static L3IP & get_default_instance()
Return the default on-board L3IP.
L3IPInterface class Implementation of the NetworkInterface for an IP-based driver.
virtual nsapi_error_t set_dhcp(bool dhcp)
Enable or disable DHCP on the network.
#define NSAPI_IPv6_SIZE
Size of IPv6 representation.
virtual char * get_interface_name(char *interface_name)
Get the network interface name.
virtual void set_as_default()
Set the network interface as default one.
virtual const char * get_gateway()
Get the local gateways.
static OnboardNetworkStack & get_default_instance()
Return the default on-board network stack.
Callback class based on template specialization.
virtual nsapi_error_t set_network(const char *ip_address, const char *netmask, const char *gateway)
Set a static IP address.
virtual nsapi_error_t connect()
Start the interface.
virtual nsapi_connection_status_t get_connection_status() const
Get the connection status.
L3IP & getl3ip() const
Provide access to the L3IP.