How to tell if mysensors library starts up successfully?
-
I would like to turn on a LED if a node cannot find the gateway (e.g. if the distance is too large) when the node is powered up. How can that be done?
I understand that the send command returns a Boolean that tells whether a message reached the gateway. However, if the node cannot find the gateway on power up the sketch never proceeds beyond
#include <MySensors.h>. Is it possible to derive some status from this command? -
I would like to turn on a LED if a node cannot find the gateway (e.g. if the distance is too large) when the node is powered up. How can that be done?
I understand that the send command returns a Boolean that tells whether a message reached the gateway. However, if the node cannot find the gateway on power up the sketch never proceeds beyond
#include <MySensors.h>. Is it possible to derive some status from this command?@arraWX The line of code to force the node to move on if no gateway is found is
//set how long to wait for transport ready in milliseconds #define MY_TRANSPORT_WAIT_READY_MS 3000some posts that may be of interest
-
@boots33 said in How to tell if mysensors library starts up successfully?:
#define MY_TRANSPORT_WAIT_READY_MS 3000
Hi,
thank you very much ! I am using the latest 2.2.rc2 version. Will give the preprocessor statement above a try ...
thank you very much,
Lars
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login