Start sketch without gateway registration
-
Hi everyone!
I have several sensors and some of them are quite autonomous. I mean they work without the absolute need of the mySensors layer.
My problem is that at the start of the sketch, the node waits until the gateway is found but never start if no gateway found...
So is there any possibility to start the node even if the gateway is not found after all the tries?
I tried to disable the flag MY_REGISTRATION_FEATURE but it is probably aimed to something else...
Thanks!
-
@heyjay82 I think you are looking for MY_TRANSPORT_WAIT_READY_MS
The forum has some good threads on this, for example
https://forum.mysensors.org/topic/5745/my_transport_dont_care_mode/
https://forum.mysensors.org/topic/6413/node-to-node-communication-fails-if-gateway-is-not-reachable/
https://forum.mysensors.org/topic/6557/switch-is-not-working-when-gateway-is-unavailable/
-
@mfalkvidd Thank you. Maybe this option can be added in the quick summary table of the config options in the api page since it seems this issue comes back quite often. I refer it regularly, it is very usefull for configuration.
-
@heyjay82 good point. I have added it to the table at https://www.mysensors.org/view/167#configuration
-
Information is also available at https://ci.mysensors.org/job/Verifiers/job/MySensors/branch/development/Doxygen_HTML/group__RoutingNodeSettingGrpPub.html#ga45b4f1c868b8cb5d7396cdfb4939559c (thanks to @Anticimex for his great job on getting the documentation into Doxygen and enabling guest access to Jenkins).
In the future, we might remove the table and just use Doxygen, since keeping the table up to date requires tedious manual work.
-
@mfalkvidd even better, use https://www.mysensors.org/apidocs-beta/index.html for navigating documentation (in this case, the docs from the development branch). Use https://www.mysensors.org/apidocs/index.html for the released version.
-
@Anticimex cool, thanks! In that case the relevant link is https://www.mysensors.org/apidocs-beta/group__RoutingNodeSettingGrpPub.html#ga45b4f1c868b8cb5d7396cdfb4939559c