Hello,
I just received the wonderful new Teensy 4.1 + native ethernet kit.
I'm working on a project which aims to transfer data on a local ethernet network as long as physical serial interfaces. I use static IPs for now.
Question is : is there a way to avoid the "Ethernet.begin(mac, ip);" function to lock down the program if no ethernet cable is connected ? With DHCP I see there is a timeout of 60 seconds, but it doesn't seem to be the case with static IPs. How to test if a cable is there ? Set up a timeout ? Bypass Ethernet.begin(mac, ip) when no cable is there ?
My device should be able to run and do stuff on the physical interfaces even if it is not connected to any ethernet network.
Any clue ?
Baptistou
I just received the wonderful new Teensy 4.1 + native ethernet kit.
I'm working on a project which aims to transfer data on a local ethernet network as long as physical serial interfaces. I use static IPs for now.
Question is : is there a way to avoid the "Ethernet.begin(mac, ip);" function to lock down the program if no ethernet cable is connected ? With DHCP I see there is a timeout of 60 seconds, but it doesn't seem to be the case with static IPs. How to test if a cable is there ? Set up a timeout ? Bypass Ethernet.begin(mac, ip) when no cable is there ?
My device should be able to run and do stuff on the physical interfaces even if it is not connected to any ethernet network.
Any clue ?
Baptistou