Show connected

I have a Sparkfun thing and Its monitoring a float in a water tank and I’m wondering how to check if the wireless is connected and turn on an LED. Can somebody help me?

Have a look at this How can i end the {cayenne.loop()} if there is no connection? - #5 by ahmed.blacky.xaver3