Getting started with Ethernet
-
Hi, I'm struggling to get started...
I can't find information on how or if it is possible to run sensor nodes over Ethernet opposed to RF? I have a Pi running OpenHab and Mosquitto and I've installed the Mysensor MQTT gateway on the Pi too. I wanted to connect my sensor nodes to the gateway using an Ethernet connection. Basically my house has Ethernet ports everywhere so I was hoping to use arduinos and WS5100 modules to build my sensor nodes.
Any help would be much appreciated
Thanks
Andy
-
@Andrew-McInnes yes that can be done. Use the ethernet gateway sketch (or the mqtt gateway sketch if you prefer mqtt), and add code for the sensor(s). Then add each gateway to your controller.
-
Hi @mfalkvidd
Thanks for your help! Great so basically each node will run as a gateway, enabling me to use the ethernet connection. Then I include the sensor code in the sketch, can you point me in the direction of any examples of a sketch running a gateway and sensor all in one?
Many thanks
Andy
-
@Andrew-McInnes I am not aware of any such example sketch
-
@Andrew-McInnes just use the gateway sketch and add presentation, setup and loop code for the sensors you want to add (copy them from nodes examples)
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Anybody got one / a few spare minimalist rfm69hw shields for wemos d1 mini?
General Discussion • 20 Sept 2024, 08:45 • kiesel 11 Oct 2024, 15:32 -
Old hardware migration
General Discussion • 29 Feb 2024, 03:43 • dbemowsk 1 Mar 2024, 23:03 -
How to great variables
General Discussion • 16 May 2024, 14:43 • wint0178 22 Jul 2024, 06:11 -
Running out of nodeId's
General Discussion • 3 Sept 2024, 07:33 • NielBierman 12 Oct 2024, 19:11 -
single-click, double-click, long-press button possible with MySensors?
General Discussion • 4 Feb 2024, 08:28 • dirkc 4 Feb 2024, 11:18