The Teensy 4.1 IMHO does not have enough Ethernet support on the forum. I hope that as it matures the community will have more help as I have yet to receive a single reply on my post below:
https://forum.pjrc.com/threads/64830-Teensy-4-1-Ethernet-Error-client-availableForWrite
I have found the following library to be useful if you need to create a webserver.
To use it, you will need to make the following changes:
1) Install library "functional-vlpp"
2) In Stream.h located at C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\Stream.h
Change from private to public.
3) Also, make the changes below in your code
I hope this will be of help.
HTML:
I have found the following library to be useful if you need to create a webserver.
HTML:
https://github.com/khoih-prog/EthernetWebServer
To use it, you will need to make the following changes:
1) Install library "functional-vlpp"
2) In Stream.h located at C:\Program Files (x86)\Arduino\hardware\teensy\avr\cores\teensy4\Stream.h
Change from private to public.
Code:
char read_error;
3) Also, make the changes below in your code
Code:
#define USE_ETHERNET false //true
//....
//....
#define USE_CUSTOM_ETHERNET true //false
#elif USE_CUSTOM_ETHERNET
//#include "Ethernet_XYZ.h"
//#include "EthernetENC.h"
#include "NativeEthernet.h"
I hope this will be of help.
Last edited: