17#ifndef CELLULAR_INTERFACE_H_
18#define CELLULAR_INTERFACE_H_
51 const char *pwd = 0) = 0;
74 const char *uname = 0,
75 const char *pwd = 0) = 0;
108#if !defined(DOXYGEN_ONLY)
Network Interface base class.
Common interface that is shared between cellular interfaces.
virtual void set_plmn(const char *plmn)=0
Set the plmn.
virtual void set_sim_pin(const char *sim_pin)=0
Set the PIN code for SIM card.
virtual bool is_connected()=0
Check if the connection is currently established.
nsapi_error_t connect() override=0
Attempt to connect to a cellular network.
void set_default_parameters() override
defined(DOXYGEN_ONLY)
nsapi_error_t disconnect() override=0
Stop the interface.
virtual void set_credentials(const char *apn, const char *uname=0, const char *pwd=0)=0
Set the cellular network credentials.
nsapi_error_t get_ip_address(SocketAddress *address) override=0
Get the local IP address.
CellularInterface * cellularInterface() final
Return pointer to a CellularInterface.
static CellularInterface * get_default_instance()
Get the default cellular interface.
virtual nsapi_error_t connect(const char *sim_pin, const char *apn=0, const char *uname=0, const char *pwd=0)=0
Attempt to connect to a cellular network with a PIN and credentials.
Common interface that is shared between network devices.
signed int nsapi_error_t
Type used to represent error codes.