Add Enc28J60-based ethernet shields support
Enc28J60-based shields are few dollars cheaper and are widely spread.
Edit stubs to add Enc28J60 support.
Uncomment //#include <EthernetStreamEnc28J60.h> // TODO : implement in sketch in order to use lib for Enc28J60
to solve this issue you might be interested in https://github.com/ntruchsess/arduino_uip, my library for ENC28J60 that implements the same API as stock Ethernet-lib.
You also might be interested in the configurable-Firmata as it has got build-in ethernet-support recently: https://github.com/firmata/arduino/blob/configurable/examples/ConfigurableFirmata/ConfigurableFirmata.ino Configurable-firmata runs fine with my UIPEthernet-library for ENC28J60.
The main difference between your EthernetFirmata and ConfigurableFirmata is that configurable-firmata runs as Client and your code as Server. I did experiment with both modes and decided on the Client, because it is does reconnect more reliable when resetting the arduino or temporary disconnect the network-cable. If the Firmata runs as Server you'd have to ensure SO_KEEPALIVE is set on the Androids socket as your application would not notice the disconnected Arduino easily (and wait for aproximatly 10 minutes after last attempt to send a packet) otherwise.
- Norbert
Thanks, Norbert! You can freely contribute or wait when i do it.