I am using an ESP32 board and have followed the tutorial to get it connected to wifi. I am also using Bluetooth to supply the WiFi credentials and verify the device on losant for authorization and then supply the access keys back to the board for connection to losant.
All this works great, WiFI connects but the problem is the device connects to Losant only briefly and gets disconnected almost immediately which results in the device being stuck in the connection wait loop.
I have tried various different posts and answers on this forum but not able to figure out the issue.
I am using the latest losant mqtt module for arduino.