I’m trying to control relay on my (battery powered) node running generic node firmware. By following the documentation (GitHub - hardwario/twr-generic-node: Firmware for HARDWARIO Generic Node), I’m able to read various values (temperature, button press), but I’m failing at writing relay commands (failing = node does not respond to any attempt).
I’ve read on How to control remote relay - #2 by Karel that controlling relay is possible only with generic node with power module, but the bcf-generic-node does not mention any constraints about this. However I’d expect some limitation on receiving commands thanks to battery powered operation, but I’m unable to find any details about this.
Later I’ve found that radio receiving is really enabled only for builds with power module. I’m writing it here for further reference as I spent some time on finding out this.
Yes,
because consumption at continental reception is 10mA it cannot be operated with a battery.
But for custom firmware exist way how listen on battery.
You can set the timeout for which the node listens after the sent message.
When I wrote this function, I sent the temperature and in response to it in Node-RED I set the relay over radio. I think a timeout of 100ms was enough.