combine repeater and sensor type
-
Hi all
Quick Q: I currently have about 5 sensors in my house. Now, the current (5th) sensor seems to be working fine, but it sits at the furthest location from my gateway. I was wondering, can I combine both the repeater and sensor functionality? This sensor serves as a tempHum gateway and would be great if it could also act as a repeater.
Kind regards
Steve
-
It's doable, but you can not run it from batteries, as it would drain them in a short time, because a repeater node can't go to sleepmode.
to make a node act as a repeater, you have to use the following to initialize your mysensors library:
gw.begin(NULL, AUTO, true)
It's described in "details" here
-
Hi,
I have a similar problem and would like to use an already existing node as a repeater. It does not run from battery, so no problem here.But I have incoming messages which this node needs to react on. In the code, I check if the incoming message has a child id known by this node. If not, nothing happens. In addition, I am using static node IDs.
So, instead of
gw.begin(NULL, AUTO, true)
my current initialisation is
gw.begin(incomingMsg, MY_NODEID, false)
because it currently does not act as a repeater.
Would
gw.begin(incomingMsg, MY_NODEID, true)
turn this node into a working repeater ?
Most of the time this node is idle. Every five minutes it reads temperature and humidity and sends it off to the controller. A few times per day it turns some switch on or off. My guess is that the additional workload for repeating messages would not be too high.
Thank you very much for your input.
Cheers
Josh
-
@joshmosh said:
Would
gw.begin(incomingMsg, MY_NODEID, true)
turn this node into a working repeater ?Yes, this enables the repeater feature.
-
@hek said:
@joshmosh said:
Would
gw.begin(incomingMsg, MY_NODEID, true)
turn this node into a working repeater ?Yes, this enables the repeater feature.
OK,thank you. This will save me an additional node..
Cheers
Josh
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 29 days ago -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 25 Mar 2025, 15:30 -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 16 Mar 2025, 20:17 -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 4 Mar 2025, 00:29 -
What is actual status of MySensors?
General Discussion • 17 days ago • perfectom 9 days ago