I have changed code that use WiFiClient instead of WiFiClientSecure and use device.connect instead of device.connectSecure.
unfortunately, Errors continue to occur.
Serial log is below.
======================
Connecting to MakeySQ
.
WiFi connected
IP address:
192.168.0.20
Connecting to Losant…-1
.-1
.-1
.-1
.-1
.-1
.-1
.-1
.-1
.-1