Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About eth-ap-L2 #4

Open
ortegafernando opened this issue Mar 3, 2024 · 5 comments
Open

About eth-ap-L2 #4

ortegafernando opened this issue Mar 3, 2024 · 5 comments

Comments

@ortegafernando
Copy link

ortegafernando commented Mar 3, 2024

Hi, I am newbie with esp-idf, but I have knowledge about arduino ide since years.

First of all thanks a lot for your examples.

I have found your "eth-ap-L2" example as I am trying to get this working (in this order):

  1. esp-idf 5.2 version framewrok with an ESP32 and W5500 module (eth2ap example works perfectly). I want to have an "wired" access point to a remote point of my house for my domotic devices.

  2. mqtt connection so I can get data about device connected and disconnected and also when the esp32 reboots/starts

  3. watchdog (>10seconds) just in case

  4. a web portal after pushing a button to configure all parameters: ssid, password, channel, max connections, mqtt url, user, pass, ....

  5. works perfectly.

Searching in internet I have found your code so I could start with 1. but after some compile errors that I have managed, after flashing it I have bootloop.

Is this code easy to update to 5.2 framework for you?

About 2. and 3., do you think it is easy to implement in the same "updated" example?

Thanks a lot.

@ortegafernando
Copy link
Author

Hi, anyone, please? Thanks. May be you need more time to show this example? Thanks.

@ortegafernando
Copy link
Author

Hello @david-cermak , is this repository still maintained? Please, help me and "us" to get this working, thanks

@david-cermak
Copy link
Owner

Hi @ortegafernando

sorry for the delay. This repo is just a collection of demo projects, I didn't mean to very much maintain it across multiple versions of SDKs, but they should work as long as they compile. If they don't, the usual culprit is the Ethernet API, you can check IDF migration guidelines, e.g. here: https://docs.espressif.com/projects/esp-idf/en/stable/esp32/migration-guides/release-5.x/5.0/networking.html#ethernet

About the question: Yes, it is possible and not hard to implement, but for the mqtt and webpage, you'd need some bridging solution. The easier option to get started is this official IDF example: https://github.com/espressif/esp-idf/tree/master/examples/network/bridge#example-2---ethernet--wifi-ap-dhcp-server
(there are other option, e.g. this example here https://github.com/david-cermak/eth-ap-nat/tree/main/eth-ap-forknetif)

@ortegafernando
Copy link
Author

Hi @david-cermak thanks a lot, I will try but... I am newbie with esp-idf. I know about Arduino IDE platform but almost nothing about esp-idf. I am good searching and making little changes by reading help and documentation web pages. I will try to go on the links your share with me, but even not doing it for the new version of the SDK, could you try to make an example about add to this examples these functionalities?:
1- mqtt connection so I can get data about device connected and disconnected and also when the esp32 reboots/starts
2- watchdog (>10seconds) just in case
3- a web portal after pushing a button to configure all parameters: ssid, password, channel, max connections, mqtt url, user, pass, .

Thanks a lot.

@ortegafernando
Copy link
Author

Hi, not luck with this, anyone could help us? thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants