This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

mqtt_connect fails with error -95 aws_fota

Hi !

I am working on aws_fota, with a nrf9160 dk, sdk 1.3.0. When I try to connect in mqtt, I get my IPv4 address I get the following message: ERROR - mqtt_connect -95.
When I try to debug myself, I notice that my error appears on line 97 :     ret = connect(client->transport.tls.sock, client->broker, peer_addr_size); 
of the mqtt_transport_socket_tls.c file within its mqtt_client_tls_connect () function.

could you help me ? thanks in advance
Parents Reply
  • Carl Richard,

    I was based on the aws_fota project, I did not touch the main, it is during the initialization of the client that the error appears.
    I modified several things:
    - I have defined CONFIG_PROVISION_CERTIFICATES
    -I modified the certificate with the private, public and CA keys
    -I modified in Kconf the address of the broker ending with amazonaws.com
    - I modified CONFIG_CLOUD_CLIENT_ID and put it in the name of the object created on aws.
    -I kept port 8883

    Best regards,

    lecozahu

Children
Related