Ethernet
{{@218#bkmrk-open-iot-and-iiot-ga}}
Link to repositories:
- C
- MicroPython (#TODO)
Connection
EthernetETHERNET connectionadapter isshould associatedbe connected to WLAN with allocatinga RJ45 cable.
Description
This example demonstrates basic usage of ETHERNET driver. After flashing the CGE2 will try to obtain an unique IP address whichin a network it will identifybe connected to. Once it will be done it will be possible to ping the device in athis network. DependingThis onexample the purpose, it might be necessary to choose between allocatingis a dynamicgood orbase afor staticdeveloping IPown address.network Forsolutions.
Console usage,output
Remember to connect the IoT Gateway to the network by an Ethernet cable.
IP adressing:
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)