LED widget indicating hardware network status

Hey guys it might be simple question and people have given their own ways like pulsing for indicating hardware network status by a virtual LED… im going to convert my project into a standalone app so i expect a more stable and reliable solution for this. how do i switch led on while connected and off while disconnected.

I can tell my hardware is offline if the clock stops.

i guess that works but i intend to add many devices to my app so it would be simple for the user to know its connected or not by looking at status LED… don’t u think @Dave1829

sorry didn’t realise it was not a hobby app - yes, users need simplistic things…

@Dave1829 its cool … Anybody else if possible get me an solution…

solution here BTW :wink:

@Dave1829 “SEARCH”?