Closed reusables-official closed 2 months ago
@narangmayank I have just ran the provisioning sketch again, no issues, then tried flashing another example "ActionsHandling.ino" but the same exact same error is present.
I will add that I opened the device config json file, and formatted it in vscode before pasting it into the sketch as per the instructions. Just to see, I provisioned the device with the json file as is (without formatting) and again same error.
Are you able to look at any logs on your side, is my device hitting your server and trying to authenticate but failing?
My latest attempt timestamps:
Tuesday, April 09 2024 09:38:38
BytebeamLogger::LOG_DEBUG (BytebeamTime) getEpochMillis : prevMillis : 0
BytebeamLogger::LOG_DEBUG (BytebeamTime) getEpochMillis : nowMillis : 1712635719007
BytebeamLogger::LOG_DEBUG (BytebeamTime) begin : beginMillis : 1712635719007
BytebeamLogger::LOG_INFO (BytebeamTime) begin : TIME : Client begin!
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * ****************************************************************** *
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * Architecture : ESP32 *
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * Chip Model : ESP32-S3 *
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * CPU Freq : 240 MHz *
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * Flash Size : 8 MB *
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * Free Heap : 269 KB *
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * SDK Version : v4.4.6-dirty *
BytebeamLogger::LOG_INFO (BytebeamArduino) printArchitectureInfo : * ****************************************************************** *
BytebeamLogger::LOG_INFO (BytebeamArduino) readDeviceConfigFile : SPIFFS file system detected !
BytebeamLogger::LOG_INFO (BytebeamArduino) readDeviceConfigFile : Reading file : /device_config.json
BytebeamLogger::LOG_INFO (BytebeamArduino) readDeviceConfigFile : - read from file
Another question I have is can you let me know exact versions of dependencies I should have installed? I believe I am currently running v7 of ArduinoJSON which has some breaking changes from v6, for example.
@narangmayank ok, I was able to initialize successfully after I downgraded ArduinoJson to v6.21.5 🎉
@reusables-official Its good to hear that you have solved the issue.
Board
esp32-s3
Device Description
DevKitC
Arduino-ESP32 Version
Latest
Bytebeam Arduino SDK Version
1.1.0
IDE Name
ArduinoIDE and PlatformIO
Operating System
macOs 13.6.6
Problem Description
From ArduinoIDE, I have provisioned the device using your example sketch with a json file I downloaded from my dashboard and it completes without errors. Using SetupClient.ino with my WiFi and SSID, produces a "failed to connect" error without much more information.
Sketch