17#ifndef NANOSTACKPPPINTERFACE_H
18#define NANOSTACKPPPINTERFACE_H
20#include "MeshInterfaceNanostack.h"
21#include "PPPInterface.h"
22#include "NanostackPPPPhy.h"
27 const char *netmask,
const char *gw,
28 nsapi_ip_stack_t stack = DEFAULT_STACK,
29 bool blocking =
true)
override;
40 void link_state_changed(
bool up);
42 link_state_cb_t link_state_cb =
nullptr;
43 bool link_state_up =
false;
44 bool enet_tasklet_connected =
false;
nsapi_error_t bringdown() override
Disconnect interface from the network.
nsapi_error_t bringup(bool dhcp, const char *ip, const char *netmask, const char *gw, nsapi_ip_stack_t stack=DEFAULT_STACK, bool blocking=true) override
Connect the interface to the network.
char * get_interface_name(char *buf) override
Returns interface name.
PPP PHY driver class for Nanostack.
Callback class based on template specialization.
signed int nsapi_error_t
Type used to represent error codes.