Gateway *and* sensor node on same Arduino - is it possible ?
-
Hi,
would it be possible to run a sensor node in parallel to a serial gateway on one Arduino ? A gateway does not consume a huge amount of code, so there would be room for some sensor code.If it is possible: anything to take care of or can I use the example code for a serial gateway and just simply add code for sensors ?
Cheers
Josh
-
Working on it.
The plan is to provide a gateway class capable of different transport-layers (serial, ethernet, esp) to the controller supporting different protocols (MySenors, MQTT, and some json-variant).
The gateway should also be able to report and receive sensor data (and relay things if you have wireless sensors connected to the gateway).
You can do this today also but it is a bit more work involved (where you have to emulate the serial/MQTT protocol yourself). I.e. do a
Serial.println("0;0;X;X;X;payload");
-
Of course ! I should have thought of it myself. Thank you for putting me on track
Cheers
Josh
-
Hello...
got a question, did you crushed it? could you make it work a sensor-Gateway on one arduino?
I'm asking because i want to use my ethernet - gateway with a DHT22 and 4 Relays and as said before as a ethernet gateway... (hope there are enought pins for my plan)...if yes, maybe you could write a tiny tutorial or something like that, because i'm not a programmer and just starting with arduino-stuff... i'm a little newbeeeeeee...
so please mybe you could help me a little...
thanks
mike
-
Hello,
Any update on this ?
I'm also interested in build all-in-one (gw + sensors).Rafal
-
This is working in the development branch now.
Suggested Topics
-
Arduino Celebrates 10 years (Malmö/Sweden)
Announcements • 29 Mar 2014, 17:08 • hek 29 Mar 2014, 17:08 -
Radio waking up for no reason.
Development • 4 Jul 2020, 21:09 • Sasquatch 15 Jan 2025, 08:33 -
Counting Incoming and Outgoing Messages from a Gateway
Development • 10 Dec 2024, 21:57 • Trand 14 Dec 2024, 20:23 -
Adding Listen only device to my system.
Development • 10 days ago • dpcons 10 days ago -
Saving last known good state, but not in EEPROM
Development • 30 Jan 2024, 18:46 • OldSurferDude 15 Jan 2025, 08:51 -
MQTT-Help me understand about the MQTT Gateway.
Development • 6 days ago • dpcons about 15 hours ago