Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Multiple gateway installation
OpenMQTTGateway support multiple gateways installation, you can install one gateway on one floor, another gateway to the second floor etc... You need to change the Gateway_Name and you can replace "home" by the floor name.
Even if you have a setup with multiple OpenMQTTGateway the program will avoid to send duplicate to the MQTT broker (in case two gateways receive signal from one sensor).
Here is how it works:
In some words the gateway listen the subject containing "toMQTT" each time a value is sent to MQTT it is stored on the other gateways buffer. If they receive the signal the gateways check against their buffer and don't send the signal as it has been already sent to the broker.