MKR1000 and Ethernet Shield problems

Hi - Im a NOOB so please bear this in mind when replying :slight_smile:

I have a MKR 1000 with several sensors attached + reliably uploading their variable values to the Arduino IOT cloud.

I also now have a genuine MKR Arduino ethernet shield installed on the board - and I wish simply to convert my project to running only off Ethernet - given how it will be installed.

I've looked at the sample code ("WebClient") for the ethernet shield (Ethernet-2.0.0) for establishing a client - using just the first steps from that - It seems to get its fixed IP address on my network and connects to my supplied DNS.

Furthermore I assumed I should also turn off the WIFI - which I did with the commands WiFi.disconnect(); and WiFi.end(); -

But that stops the variables updating on the cloud. This makes me think that Im not actually getting any connectivity from the ethernet at all.

My question is what are the steps now required to then get the data from the sensors being transferred to the Arduino Cloud using the ethernet shield. Or asked another way - Given the MKR is setup for wifi connectivity how can that be simply flipped to ethernet connectivity when a shield I installed?

I cant seem to find any sample code for this option (maybe Im missing it)

Any clear simple steps for me - or ideally any sample code would be gold! Thanks heaps..

Hi @embodiedmedia. My understanding is that there is no official support for connecting to Arduino IoT Cloud via an Ethernet shield at this time.

You can learn about the subject and also see the changes that might be required in order to add such support to the "Arduino_ConnectionHandler" library by looking at the proposal and discussion here:

OK many thanks for pointing that out - Ill give it a crack .. if you have any idea when the board will be officially supported with software that would be great to know.

I don't know anything about the subject beyond what was said at the link above and the other discussion linked from there.

I think that if you need it then you are probably best off applying the changes to the copy of the "Arduino_ConnectionHandler" that is installed on your local system. I get the impression that the initiative stalled at the finish line and we are not likely to see the official Ethernet support any time soon.

It is unfortunate because I do prefer Ethernet for applications where the portability of wireless connectivity is not needed.

you are right re the MKR - the Arduino support team person who I asked said -

"Unfortunately, the shield is not compatible with the Arduino IoT Cloud at the moment and needs to be connected by Wifi using the Arduino MKR 1000 Wifi board. "

Let us know if you have any trouble applying those changes to your library. I just took a look and it doesn't appear too complex since it is mostly isolated in newly added files.

You can skip the change in keywords.txt. That part only provides cosmetic code highlighting in Arduino IDE 1.x, so is completely optional.

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