Skip to content

ESP32 PPP over serial connection with a NULL modem example #10854

@hussainhadi673

Description

@hussainhadi673

Related area

Serial Interface

Hardware specification

ESP32S3

Is your feature request related to a problem?

I am trying to connect my linux laptop (configured as PPP server using PPPD) with esp32. I am unable to find any suitable example code on ESP32 to configure it as PPPos client to connect with a null modem. All the examples on the internet are for making ESP32 PPP connection with modems.

However I have found one example code in micro python that works perfectly and connect with the Linux machine:

`import machine
import time
uart = machine.UART(2, baudrate=9600, tx=13, rx=14)

import network
ppp = network.PPP(uart)
ppp.active(True)
ppp.connect()
ppp.ifconfig()
ppp.isconnected()`

I need the same code in C language.

Describe the solution you'd like

A code that connects my esp32 to a null modem

Describe alternatives you've considered

No response

Additional context

No response

I have checked existing list of Feature requests and the Contribution Guide

  • I confirm I have checked existing list of Feature requests and Contribution Guide.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions