Library ethernet

To use this library in your code:

import net.ethernet
Library to open an ethernet connection.
This library makes it possible to explicitly open a network connection, even if net.open defaults to a different connection (like WiFi).
It requires a ServiceProvider to be installed. On the ESP32, this could be the EthernetServiceProvider.
Example

import net.ethernet

main:
  network := ethernet.open
  // Use the network for network communication.
  ...
  network.close

Functions

open --name/string=null -> Client

reset -> none
Resets the ethernet client.
This allows re-establishing the link to the ethernet service provider at a later time. At that point, the service provider may have changed, so calling reset enables reacting to that.