Direct Connected Device issues

Im in the final step to make my device works. But I’m getting this error from the make monitor everytime. Im using an esp8266 based device.

E (25725) [IoT]: _iot_security_be_software_cipher_aes(925) > mbedtls_cipher_crypt = -0x6280
E (25725) [IoT]: _encrypt_and_encode(224) > aes encryption error 0xfffffbe3
E (25735) [IoT]: _es_keyinfo_handler(704) > encrypt and encode failed 0xfffffe07
E (25755) [IoT]: iot_easysetup_request_handler(1831) > failed to handle step 1 (-505)

Checked my onboarding_config.json and my device_info.json many times.

Would appreciate any help

Tagging @erickv

2 Likes

Hi, @Jhonin

I’ll be testing this out. To have a better reference of the issue, could you please share which app from the SmartThings Device SDK Reference did you use?

Hi @erickv, st_switch

1 Like

Hi, @Jhonin

I haven’t been able to trigger the error message you’re receiving, however, some of the issues that I’ve triggered were solved deleting the device, re-flashing it and adding the device again.

Additionally, could you please confirm that you’re using your organization’s MNID when you run the stdk-keygen command (i.e. stdk-keygen -m <org_mnid>)?

@erickv Thanks for the reply !

Have been trying since yesterday, with no success, everything is correct mnid, onboading, device info. Looking forward to start with the ESP32 chip, maybe the problem is my esp8266 chip.

Also getting this on latest app version. ESP8266 board:
E (34922) [IoT]: _iot_security_be_software_cipher_aes(1112) > mbedtls_cipher_crypt = -0x6280
E (34922) [IoT]: _encrypt_and_encode(224) > aes encryption error 0xfffffbe3
E (34932) [IoT]: _es_keyinfo_handler(704) > encrypt and encode failed 0xfffffe07
E (34942) [IoT]: iot_easysetup_request_handler(1830) > failed to handle step 1 (-505)