How to force MySensors to start setup and loop before connect to Gateway?
-
Dear All,
the reliability is the key of the system for me. So I decide to have local functions, that do not need gateway/HUB to be usable. I use Domoticz. In my primary setup, there is my Domoticz server on RPi 3 and multiple Arduino Mega as Serial Gateway. These Mega are controlling lights and Roller Shutters in my house. Every light/blind has it own button, connected to Mega's Input pin. The same Mega is controlling also the relays. The adventage is that no metter if there is Internet or even if Domoticz Server is running, the local buttons and relays are always working - domoticz is just an "extra feature" for my system.
The problem is, when I would like to add some extra devices connected by nrf24l+ and have the same functionality (this means, that the local function is always available, also without connection to gateway), there is a problem. As long, as the slave cannot reach the gateway, the arduino's loop function is not running. Is it possible to get the loop function running even without the gateway on the slave?
-
add this line before MySensors.h:
#define MY_TRANSPORT_WAIT_READY_MS 1
-
It works, thank you
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 15 days ago -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
ESP32 with LoRa
General Discussion • 31 Jan 2023, 11:06 • dhanushmh 11 days ago -
Meet in Malmö, Summer 2016?
General Discussion • 1 Feb 2016, 15:34 • bjacobse 4 Mar 2025, 00:29 -
Which device I have to use to connect with accelerometer before connecting to my pc?
General Discussion • 24 Jan 2023, 17:16 • Yada Kijsathan 28 days ago