Best way to verify connection

What is the best way to determine if the notehub can be reached? I want to do this to blink a light if it goes out of reach. Is there an option other than sending a note?

Hi @bkauf,

There is no API that will tell you if Notehub “can be reached”, but you can use the hub.status API to check on the current status of your connection with Notehub. If "connected":true appears in the response, then you have an active connection to Notehub.

Rob

1 Like