esp8266 / Arduino

ESP8266 core for Arduino
GNU Lesser General Public License v2.1
16.03k stars 13.33k forks source link

Feature Request: Add SLIP support to LWIP #8921

Open ssshake opened 1 year ago

ssshake commented 1 year ago

Basic Infos

Platform

Problem Description

I wish to use the SLIP protocol using an ESP8266 and the Arduino IDE, however LWIP for this repository does not have the SLIP code that does come with the standard ESP library found here: https://github.com/espressif/esp-lwip/blob/2.1.2-esp/src/netif/slipif.c

I am asking if you could please add this support so that I can continue development of my project in the Arduino ecosystem.

mcspr commented 1 year ago

https://github.com/espressif/esp-lwip/blob/2.1.2-esp/src/netif/slipif.c

repository is here, we do not use Espressif LWIP repo

things just have to be built, don't see any dependencies and it has to be manually initialized so should be pretty safe to include

ssshake commented 1 year ago

OK thank you very much for the information!

What I am trying to do is port this existing code based (https://github.com/martin-ger/esp_slip_router) so that is can be used within the Arduino environment. I am trying to use martin-ger's implementation of a SLIP router in my existing code, my existing code does PPP and I wish to offer SLIP as well.

To be honest I am just learning as I go and this is quite a bit over my head, but if I could get the basics of SLIP working in Arduino that would get me moving in the right direction.