The functionality I am looking for is:
My LED lighting systems can be remotely controlled either per UDP/OSC or using an Apple Aluminum IR Remote Control (The Apple Remote control can be paired to a device which makes it a very nice choice!)
If the ethernet connection fails or times out for some reason I don't want for my sketch to be blocked. I want for the lamp to turn on immediately and perhaps provide feedback whether an Ethernet connection was successful by using a different lighting patterned. Flash red a few times if it was successful, flash green if the connection failed. If the connection fails it can still be remotely controlled via IR, so an Ethernet connection is a nice to have rather than essential to the operation of a lamp.
I googled non-blocking Ethernet library and found a not too old version on on Github. I've just barely started comparing the two and I am wondering if the desired behavior described above is not already possible with the existing library ?
Another very old version of the Ethernet library was already able to provide this but I already an good amount of time upgrading the Bonjour library from that same source that I would like avoid having to do the same for the DHCP part of the Ethernet library ;-)
Any hints and help iare appreciated!
- in setup(); I want to initialize/start an Ethernet connection and initialize/start a DHCP lease, but I don't want to wait for it's completion.
- in loop(); I want to check on the state of the connection while the system is already happily performing its main function. If the Ethernet connection is not successful I simply go on with life ;-)
My LED lighting systems can be remotely controlled either per UDP/OSC or using an Apple Aluminum IR Remote Control (The Apple Remote control can be paired to a device which makes it a very nice choice!)
If the ethernet connection fails or times out for some reason I don't want for my sketch to be blocked. I want for the lamp to turn on immediately and perhaps provide feedback whether an Ethernet connection was successful by using a different lighting patterned. Flash red a few times if it was successful, flash green if the connection failed. If the connection fails it can still be remotely controlled via IR, so an Ethernet connection is a nice to have rather than essential to the operation of a lamp.
I googled non-blocking Ethernet library and found a not too old version on on Github. I've just barely started comparing the two and I am wondering if the desired behavior described above is not already possible with the existing library ?
Another very old version of the Ethernet library was already able to provide this but I already an good amount of time upgrading the Bonjour library from that same source that I would like avoid having to do the same for the DHCP part of the Ethernet library ;-)
Any hints and help iare appreciated!
Last edited: