Code Monkey home page Code Monkey logo

Comments (4)

khoih-prog avatar khoih-prog commented on May 20, 2024

Hi

Thanks for using the library.

I suggest you start with the working and more complex Server examples as follows, I just tested OK and running reliably. Then modify then according to your requirements.

We're sorry We certainly don't have time to spend on your issue, unless you use those examples and prove they're not working.

  1. AdvancedWebServer

Starting AdvancedWebServer on TEENSY 4.1 with Custom Ethernet using Teensy 4.1 NativeEthernet Library
EthernetWebServer v1.5.0
[EWS] ======== USE_NATIVE_ETHERNET ========
[EWS] Default SPI pinout:
[EWS] MOSI: 11
[EWS] MISO: 12
[EWS] SCK: 13
[EWS] SS: 10
[EWS] =========================
[EWS] Board : TEENSY 4.1 , setCsPin: 10
=========================
Currently Used SPI pinout:
MOSI:11
MISO:12
SCK:13
SS:10
=========================
Using mac index = 14
Connected! IP address: 192.168.2.97
HTTP EthernetWebServer is @ IP : 192.168.2.97

Selection_810


  1. WebServer_NativeEthernet

Selection_809


from ethernetwebserver.

m0r13 avatar m0r13 commented on May 20, 2024

Hey,

I can confirm the above issue on a Teensy 4.1 using the AdvancedWebserverExample.
The Teensy does not accept any connections but is running / prints the heartbeats.
As a difference to @MoosKarneval181, Ethernet.localIP() is always 0.0.0.0, whether static IP or DHCP.
I'm using Arduino 1.8.16, Teensyduino 1.55, and I have applied the patches necessary for the library.

Interestingly, it works on a different PC with Arduino 1.8.15 and Teensyduino 1.54.
I have already tried a fresh install of Arduino 1.8.16 and patching only Stream.h manually (in case that the patches are out-of-date...).
Please let me know how we can debug this.

I would actually like to use the library with platformio but there I run into the same issue.
I hope that finding out what the issue is will help fixing it there as well.

Best regards
Moritz

from ethernetwebserver.

khoih-prog avatar khoih-prog commented on May 20, 2024

I suggest you first trying the better QNEthernet instead of NativeEthernet library.

I've just tested and added support to UPnP_Generic for Teeensy 4.1 + QNEthernet several hours ago.

The result in T41_QNEthernet_SimpleServer on TEENSY 4.1

Interestingly, it works on a different PC with Arduino 1.8.15 and Teensyduino 1.54.

I'm afraid only you can find out what is the issue, such as installation, missing files, etc.

Good Luck,

from ethernetwebserver.

m0r13 avatar m0r13 commented on May 20, 2024

Thanks, it works with QNEthernet. With platformio as well... must be some issue with the current Arduino distribution or NativeEthernet then.

from ethernetwebserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.