π¬ Selecting a Gateway
-
This thread contains comments for the article "Selecting a Gateway" posted on MySensors.org.
-
I am confused.
If I am sending data from an Arduino to a RPi3 using NRF24L01+.
Won't the Arduino be a sensor node?
If so, does that make the rpi3 the recieving node which is also acting like a gateway to a controller (OpenHab)?Does anyone know how to set up the raspberry to collect this sensor data?
Or do I have to add an arduino to it for collecting this data?
-
@LaMB95
Arduino sends data like sensor node and Raspberry works like gateway.https://www.mysensors.org/build/raspberry
or this:
-
can't I use my PC as a gateway for now???
-
Hi,
Reading again various pages to try solving a problem, I noticed this statement (in the raspberry pi gateway):
"To set the gateway as a client that connects to a controller, use:"
What does it mean ? what is the difference between a client or not ? I saw nothing in the "getting started pages" or in "selecting gateways" explaining that.br,
Ricorico94
-
@ricorico94 when the gateway is client, the gateway connects to the controller. So the gateway needs to know the ip address and port of the controller.
When the gateway is server, the controller connects to the gateway. The controller needs to know the ip address of the gateway.
-
Thank you for this explanation. So I guess in my case, I have the gtw as server since I had to fil in Domoticz the IP address of the gtw (even though it was 127.0.. as local IP).
Is there any difference of behavior between the 2 settings ? Like if the Mysensor gtw is in server mode, it means that multiple controllers could connect to it and receive the sensors flux ?
I tried to find some documentation on that but no success so far. It's more for my own curiosity at this stage.
-
@ricorico94 youβre correct.
When the gateway is in server mode, multiple controllers can connect to the gateway if MY_GATEWAY_MAX_CLIENTS is defined to something larger than the default value of 1.
However, things can become very confused if multiple controllers respond to the same message.