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

Ethernet support? #205

Open
dzungpv opened this issue Jan 5, 2025 · 4 comments
Open

Ethernet support? #205

dzungpv opened this issue Jan 5, 2025 · 4 comments

Comments

@dzungpv
Copy link
Contributor

dzungpv commented Jan 5, 2025

Seem like the lib not support Ethernet. I try the lib with LAN 8720A chip but the Ethernet not working.

@hitecSmartHome
Copy link

You have to put a compiler flag into pio.ini so the lib knows you are using ethernet.

@hitecSmartHome
Copy link

platformio.ini

build_flags = 
    -D PSY_ENABLE_ETHERNET=1

@dzungpv
Copy link
Contributor Author

dzungpv commented Jan 5, 2025

You have to put a compiler flag into pio.ini so the lib knows you are using ethernet.

You mean V2? I try to migrate but many error, seem not have any guide to migrate.
For example code in V1:

    // send to browser
    PsychicStreamResponse response(request, "text/plain");

    response.beginSend();
    response.print(html_common_header);
    response.print(optionPage);
    response.print(commonFooter);
    bool result = response.endSend();

Do you have commit or guide help migrate from the V1, I check this 5cbdc52 but it not all

@hitecSmartHome
Copy link

Oh yeah, it's in V2 sorry. I belive v1 also supports ethernet. V2 is in development and there are no migration guide yet

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