-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mqtt_connect fails with return -2 #23184
Comments
Please remove the The original title suggested that there is a problem with CA certificate used ( I recommend to enable mbed TLS logs in order to proceed with investigation. Try adding the following:
|
How to enable 'MBEDTLS_X509_CRT_PARSE_C' this particular option
|
It's enabled by default when certificate-based cipher suite is selected: |
I have enabled CONFIG_MBEDTLS_KEY_EXCHANGE_RSA_PSK_ENABLED=y in prj.conf Then i have added the following statement in src/main.c
After flashing the code on to the device, and looking at serial logs, this log is not present, hence my question |
Got the zephyr able to communicate with aws, if anyone is interested
|
Thanks for the example! Would you be able to submit a sample app to |
Do we have any documentation on how to submit? |
See zephyr documentation for info https://docs.zephyrproject.org/latest/contribute/index.html?highlight=submit |
I have created a pull request : #23469 |
The original issue was resolved. |
Hi Guys,
I tried to connect to MQTT Amazon Web Services IOT Service. Wrote a basic code by following other two cloud samples. Please have a look at the below code
It fails with the following messages
Following is my prj.conf file
The text was updated successfully, but these errors were encountered: