network status - RA*

Do you have a question on how to do something.
Ask in here.

Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil
PostPosted: Sat Feb 10, 2018 3:16 pm
hi

is there any way to check if the RA*:

a - has a local IP
b - is connected to the clound

?
Image

Posts: 12224
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sat Feb 10, 2018 5:03 pm
It will show on the status page on the controller
Roberto.

Posts: 133
Joined: Sun Mar 09, 2014 11:01 am
Location: Santos - Brazil
PostPosted: Sun Feb 11, 2018 12:12 pm
Hi Roberto

I mean check by the program.. not by the user
Image

Posts: 12224
Joined: Fri Mar 18, 2011 6:47 pm
PostPosted: Sun Feb 11, 2018 12:17 pm
Humm.
No. You can use a custom vars to store ip address, but there is no connection to cloud server check.
The mqtt protocol doesn't provide that info.
It's a subscription based and all subscribed clients receive the data without any discrimination of connection state.
What you can do is create your own heartbeat and keep listening to see if you get stuff from controller every x seconds, but I would think that listening for temperature or pH readings would do the same as they frequently change anyway.
Roberto.

Return to How do I code ...

Who is online

Users browsing this forum: No registered users and 3 guests

cron