ct-Open-Source / Basecamp

An Arduino library to ease the use of the ESP32 in IoT projects
GNU General Public License v3.0
254 stars 48 forks source link

Add ethernet support #74

Open ghost opened 5 years ago

ghost commented 5 years ago

Added ethernet support for olimex esp32-evb. Ethernet support is enabled by define BASECAMP_WIRED_NETWORK. Ethernet support is integrated into WifiControl. To further clean up WifiControl could be renamed to NetworkControl

Initial idea was to use define BASECAMP_NOWIFI however basecamp does not compile if BASECAMP_NOWIFI is set. Integration and abstraction via WifiControl reduces number of ifdefs in rest of the codebase.