How ethernet gateway code can check if is connected with controller?
-
Having arduino ethernet gateway I need to send messages with senors values to controller (Home assistant requirement to auto configure sensors).
With serial gateway simple sending in first iteration of loop:void loop() { if ( ! inital_msgs_sent ) { inputs.sendStates(); outputs.sendStates(); inital_msgs_sent = true;worked.
But with ethernet controller loop starts when HA is not yet connected to GW so sent messages do not reach controller :/
So, how should I fix it?- Is any way to know if controller is connected ?
- Is any way to know if controller requested presentation?
- Is any way to know if send message really reached controller?
TIA, regards,
-
Having arduino ethernet gateway I need to send messages with senors values to controller (Home assistant requirement to auto configure sensors).
With serial gateway simple sending in first iteration of loop:void loop() { if ( ! inital_msgs_sent ) { inputs.sendStates(); outputs.sendStates(); inital_msgs_sent = true;worked.
But with ethernet controller loop starts when HA is not yet connected to GW so sent messages do not reach controller :/
So, how should I fix it?- Is any way to know if controller is connected ?
- Is any way to know if controller requested presentation?
- Is any way to know if send message really reached controller?
TIA, regards,
@matkor said in How ethernet gateway code can check if is connected with controller?:
- Is any way to know if controller is connected ?
- Is any way to know if send message really reached controller?
Seems positive send() result means message reached controller when executed on gateway?
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