[Solved] MKR1000 hangs on trying to connect to Losant

The code looks correct. Our broker uses a certificate authority that should be pre-installed on Arduino devices. That may have changed, however. We’ll have to find an Arduino and try it out.

If you do need to install the CA, it can be found here:

Behind the scenes, your device is connecting to broker.losant.com.

You can also try connecting without SSL to see if that eliminates the issue. There’s only two changes that need to be made:

  1. Change WiFiSSLClient to WiFiClient
  2. Change device.connectSecure(...) to device.connect(...)