MQTT-Gateway - some questions
-
Hi,
Being new to mysensores, I´m trying to build a MQTT-Gateway for OpenHAB using an arduino nano clone and a W5100 ethernet shield.
I followed the instructions to connect the shield and the nano using dupont wires.
The instructions for ethernet gateways tell me to use soft-SPI due to the W5100, which has to be done in myconfig.h via "#define SOFTSPI".Building a MQTT-Gateway, I am using the sketch for MQTT on mysensors.org. I don´t know if I have to #define SOFTSPI in myconfig.h, too, like using a ethernet gateway without MQTT.
One more question, please:
My router uses DHCP. That´s why I can´t setup static IPs. But, I have the possibility to add devices using the mac adress by myself. The sketch containing "byte TCP_MAC[] = { 0x06, 0xDE, 0xAD, 0x00, 0x00, 0x42" means, I have to add the MAC adress 06-DE-AD-00-00-42 to the specific IP ? Is this correct ?Thanks a lot.
-
@blebbens It's been a while. But if I remeber it correctly you have to set #define SOFTSPI in MyConfig.h too. Don't forget to comment it back when you're compiling a sketch for a node.
My router uses DHCP as well. But I can assign a static IP in the sketch. Shouldn't be a problem.
I'm not sure, but I think the arduino can't handle DHCP, it's a really simple ethernet card. So you need to assign an IP in the sketch.
Suggested Topics
-
VERA / Arduino Integration
Vera • 21 Oct 2019, 21:41 • sparky60 5 Nov 2019, 10:40 -
Day 1 - Status report
Announcements • 23 Mar 2014, 22:45 • hek 24 Mar 2014, 20:12 -
Newbie question about how the mysensors gateway connects to controller
General Discussion • 23 Mar 2020, 15:05 • Thomas433 24 Mar 2020, 22:12 -
Error while compiling the Ethernet Gateway
Troubleshooting • 26 May 2016, 10:48 • alexsh1 3 Jun 2016, 13:08 -
Raspberry Pi Ethernet Gateway with local sensors
Hardware • 28 Feb 2021, 13:27 • jvdk 3 Mar 2021, 03:51 -
No softspi support for RFM69
Bug Reports • 16 Aug 2015, 06:35 • mrmin24 23 Jul 2017, 11:32 -
Ethernet Gateway
General Discussion • 29 Apr 2016, 10:02 • dzairo 29 Apr 2016, 20:54 -
GetWired – RS485 & MySensors home automation modules
My Project • 2 Feb 2020, 08:37 • feanor-anglin 2 Feb 2020, 08:37