Mistake on this page?
Report an issue in GitHub or email us
Public Member Functions | Static Public Member Functions | Static Protected Member Functions
MeshInterface Class Reference

#include <MeshInterface.h>

Inheritance diagram for MeshInterface:
NetworkInterface DNS MeshInterfaceNanostack LoWPANNDInterface ThreadInterface

Public Member Functions

virtual MeshInterfacemeshInterface ()
 
- Public Member Functions inherited from NetworkInterface
virtual const char * get_mac_address ()
 
virtual const char * get_ip_address ()
 
virtual const char * get_netmask ()
 
virtual const char * get_gateway ()
 
virtual nsapi_error_t set_network (const char *ip_address, const char *netmask, const char *gateway)
 
virtual nsapi_error_t set_dhcp (bool dhcp)
 
virtual nsapi_error_t connect ()=0
 
virtual nsapi_error_t disconnect ()=0
 
virtual nsapi_error_t gethostbyname (const char *host, SocketAddress *address, nsapi_version_t version=NSAPI_UNSPEC)
 
virtual nsapi_value_or_error_t gethostbyname_async (const char *host, hostbyname_cb_t callback, nsapi_version_t version=NSAPI_UNSPEC)
 
virtual nsapi_error_t gethostbyname_async_cancel (int id)
 
virtual nsapi_error_t add_dns_server (const SocketAddress &address)
 
virtual void attach (mbed::Callback< void(nsapi_event_t, intptr_t)> status_cb)
 
virtual nsapi_connection_status_t get_connection_status () const
 
virtual nsapi_error_t set_blocking (bool blocking)
 
virtual EthInterfaceethInterface ()
 
virtual WiFiInterfacewifiInterface ()
 
virtual CellularBasecellularBase ()
 
virtual EMACInterfaceemacInterface ()
 

Static Public Member Functions

static MeshInterfaceget_default_instance ()
 
- Static Public Member Functions inherited from NetworkInterface
static NetworkInterfaceget_default_instance ()
 

Static Protected Member Functions

static MeshInterfaceget_target_default_instance ()
 
- Static Protected Member Functions inherited from NetworkInterface
static NetworkInterfaceget_target_default_instance ()
 

Additional Inherited Members

- Public Types inherited from NetworkInterface
typedef mbed::Callback< void(nsapi_error_t result, SocketAddress *address)> hostbyname_cb_t
 
- Public Types inherited from DNS
typedef mbed::Callback< void(nsapi_error_t result, SocketAddress *address)> hostbyname_cb_t
 
- Protected Member Functions inherited from NetworkInterface
virtual NetworkStackget_stack ()=0
 

Detailed Description

MeshInterface class

Common interface that is shared between mesh hardware

Member Function Documentation

MBED_WEAK MeshInterface * MeshInterface::get_default_instance ( )
static

Get the default Mesh interface.

This is provided as a weak method so applications can override. Default behaviour is to get the target's default interface, if any.

Returns
pointer to interface, if any
MBED_WEAK MeshInterface * MeshInterface::get_target_default_instance ( )
staticprotected

Get the target's default Mesh interface.

This is provided as a weak method so targets can override. The default implementation will invoke LoWPANNDInterface or ThreadInterface with the default NanostackRfPhy.

Returns
pointer to interface, if any
virtual MeshInterface* MeshInterface::meshInterface ( )
inlinevirtual

Dynamic downcast to a MeshInterface

Reimplemented from NetworkInterface.


The documentation for this class was generated from the following files:
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.