aws / aws-iot-device-sdk-embedded-C

SDK for connecting to AWS IoT from a device using embedded C.
MIT License
974 stars 622 forks source link

0E (75406) aws_iot: failed! mbedtls_ssl_write returned -0x4e on esp32 when using greengrass and ble together #1869

Open AnoopYash opened 1 year ago

AnoopYash commented 1 year ago

I have used esp2 and arduino ide, ble to get sensor data and send data to greengrass local core and further it will send data to cloud. in starting it works perfectly but after publishing 2-3 data it starts throwing the same error. can anyone help on this why I am getting issue. I have tried many times but getting the same problem. aws_iot: failed! mbedtls_ssl_write returned -0x4e

gmtt commented 1 year ago

Hello, thank you for bringing this to our attention! We will be looking further into this issue as soon as we can, thank you for your patience! In the meanwhile, could you provide more detail information regarding to your problem? E.g. your board model, the more detailed output and error messages.

AnoopYash commented 1 year ago

model- esp32 wroom32u Arduino ide

following log I am getting when connected it is giving error. ODOMETER SENSOR:0.00 abort() was called at PC 0x401e1c43 on core 0

Backtrace:0x40083749:0x3ffe29e00x40094789:0x3ffe2a00 0x40099985:0x3ffe2a20 0x401e1c43:0x3ffe2aa0 0x401e1c8a:0x3ffe2ac0 0x401e1193:0x3ffe2ae0 0x401e0cba:0x3ffe2b00 0x401e11ed:0x3ffe2b20 0x400d7233:0x3ffe2b40 0x400de845:0x3ffe2b80 0x400de8e2:0x3ffe2ba0 0x400d2f2b:0x3ffe2bc0 0x401f6fb2:0x3ffe2c10 0x400dc2cd:0x3ffe2c30 0x400dcbd1:0x3ffe2c80 0x400db3a5:0x3ffe2ca0 0x400dbdc5:0x3ffe2d50 0x4010e49e:0x3ffe2da0 0x4010ec45:0x3ffe2dc0 0x4013601d:0x3ffe2e10 0x40137e77:0x3ffe2e30

gmtt commented 1 year ago

Hi @AnoopYash, thanks for the update. According to your error message, this could be a problem of Mbed TLS. To assist you in troubleshooting the problem, could you please enable TLS debugging by following the instructions outlined in this wiki? Please post the resulting log or output here so that we can provide further assistance. Additionally, it would be helpful if you could tell us about the specific demo or code you are attempting to run.