/** * User initiated disconnect * * Disconnects from PPP connection only and brings down the underlying network * interface */ nsapi_error_t PPPCellularInterface::disconnect() { nsapi_error_t ret = nsapi_ppp_disconnect(_fh); if (ret == NSAPI_ERROR_OK) { dev_info.ppp_connection_up = false; return NSAPI_ERROR_OK; } return ret; }
/** * User initiated disconnect * * Disconnects from PPP connection only and brings down the underlying network * interface */ nsapi_error_t PPPCellularInterface::disconnect() { return nsapi_ppp_disconnect(_fh); }