Connect to Arduino IoT Cloud via Ethernet

Hello all,
this is my first post to the forum and I'm just getting up to speed with Arduino - so please help and please give me a break if my question seems stupid!

I've recently started playing with a Nano RP2040 Connect. I've managed to get it working with a MKR ETH shield because for my design I need to connect over wired Ethernet rather than WiFi.

I also want to connect and control the board from the Arduino IoT Cloud and this is where I'm struggling. There are a lot of examples showing how to connect to the AIoTCloud over WiFi (the default approach), but no information I can find on setting up a Ethernet based connection. The documentation for ArduinoCloud() seems to be non-existant.

Any help appreciated. Thanks.

Jim

2 Likes

the Arduino IoT Cloud library doesn't support Ethernet

It is a real shame that there is no way to connect to IoT via ethernet. I am having to work in a location where my WiFi is very flaky, but my ethernet is fine. This makes development far more difficult and time consuming for me because . I spend more time worring about the WiFi than the coding.

My sketches won't work until I fill in the Secret_SSID, but this deals with WiFi networks, not ethernet (as far as I understand). Is there anything to be done about skipping the Secret file or tricking it into using a ethernet?

Is there a way round this or am I gong to have to change my work location?

-- Andrew

Hi. I agree with Andrew. It would Be so good (in my situation, I want to have sensors in schools where wifi is very restricted. Is there any plan for the support of ethernet ? Will it Be available with in 6 months, 1y ? Can it Be done today with esp8266 and ENC28J60 combined ?

it should be possible with the lwip_enc28j60 library from esp8266 arduino core 3. it allows the WiFi library to use enc28j60 as network interface

1 Like

Thanks. I gonna try. I will keep u posted.

Hi Juraj.
I tried to find information on the using encc28J60 as network interface nodeMCU, but I have not been able to. I don't know how to start... Could you please give me some inputs or links ?
Thanks.
CH

see lwIP_Ethernet library examples

Hello,

the Ethernet connectivity works out of the box with IoT Cloud only using a board of the Portenta family and a proper shield (Portenta Vision Shield Ethernet, Portenta Machine Control etc.)

is there any option to use other ESP32 Ethernet boards?

Is there a link or guideline how to do this ?

you can use a wired Ethernet module as a network interface for the ESP32 WiFi library. in esp32 arduino core the list of supported modules is

ETH_PHY_LAN8720, ETH_PHY_TLK110, ETH_PHY_RTL8201, ETH_PHY_DP83848, ETH_PHY_DM9051, ETH_PHY_KSZ8041, ETH_PHY_KSZ8081, ETH_PHY_MAX

and this library sets a W5500 as a network interface

thanks juraj, is there any tutorial for the first or example ?

in the IDE Examples menu.
for Esp32 Ethernet library
or for the WebServer_ESP32_W5500 library

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.