Adafruit cc3000

Hi there.
I have a question.
I have arduino mega and adafruit cc3000 wifi shiels and I succesfully connect to my android hotspot, I want turn on external LED when the cc3000 succes to connect to my android hotspot and turn off the external LED when the cc3000 lost the connection.
How can I do it?

sagy.ino (5.83 KB)