I just got an update on this, and it seems a bit of trial and error may be involved; these devices can be a bit pesky at times! One of our engineers was operating on a similar device and the following details replicate his process to connecting this device.
Stable library versions for the device:
- ArduinoJson - 5.13.5, updating to 6 requires changes to the Losant library, which are currently in progress
- ESP8266Wifi - 2.4.2, after this version you cannot connect securely,
- PubSubClient - 2.6 is fine, 2.7 is an improvement but you will need to set MQTT_MAX_PACKET_SIZE to 256 in the header file
With the correct versions of these libraries, you would then need to reset the device and the Arduino IDE. To do this, you’ll first unplug the device. Next, quit and restart the Arduino IDE. Once the IDE has restarted, plug in your device again to power it on. The test device was able to successfully connect after following these steps, but I am very interested to hear your results.
Keep in mind, the engineering team is working at the moment to fix our libraries and make this more seamless, so I will follow up when those updates are released. In the meantime, we want to get you successfully connected and are eagerly looking forward to your results.
Please let me know if you have any further questions.
Thanks so much!