C: https://github.com/Redisage/PAC-ESP32/tree/master/C_examples/Ethernet

Ethernet connection is associated with allocating unique IP address, which will identify the device in network. Depending on the purpose, it might be necessary to decide between allocating dynamic or static IP address. For developer use, you can find both examples

Remember to connect IoT Gateway to the network by ethernet cable.

  • dynamic - There is no need to do any modifications. Just flash into device. Blinking green LED indicates communication. Open serial port monitor to see logs.

  • static - In this example it is important to set network settings manually. Flash into device. Blinking green LED indicates communication. Open serial port monitor to see logs.

Parameters to be changed:

  • DEFAULT_IP (IP address)

  • DEFAULT_GW (Gateway address)

  • DEFAULT_NM (Network mask)