repeater and sensor in one node.
-
It is possible in one node is repeater and sensor?
Thanx
Pawel
-
Yes, repeaters can report sensor data.
-
I should change:
- in setup():
gw.begin() --> gw.begin(NULL, AUTO, true); - in loop();
gw.sleep(SLEEP_TIME); --> gw.process();
this will be enough?
when i use node as repeater with sensor . this will be work all time without sleep mode?
And I should us timer (not delay) send sensors value.
What else?
- in setup():
-
Yes, that should do it.
And yes you shouldn't use delay() or sleep the node. Instead you use timer or your own millis() checks.