Hi jju. Please take a look at this if you haven't already: https://docs.aws.amazon.com/iot/latest/developerguide/diagnosing-connectivity-issues.html. Please also consider to enable logging in CloudWatch if you haven't already: https://docs.aws.amazon.com/iot/latest/developerguide/configure-logging.html
We have tested the MQTT connection using a python script from the PC, and this works, we can connect and publish.
This of course would indicate that the Python script had access to correct certificates and key, and a valid IoT policy is attached to the certificate in IoT Core. I'm not sure if you're saying you use the same certificates and private key on your device? Do the script and device use the same client ID? Is the certificate attached to a Thing in IoT registry? If so, does the IoT policy limit connection by thing name?
We have also testet certificates by doing SSL connection form the module which works but MQTT connection fails.
Are you saying you established a TLS connection, but not an MQTT connection? One way this can happen is if you use port 443 but fail to specify the ALPN protocol name.
Please consider to share redacted device logs, the IoT policy, the port number and so forth.
as I do not have access to the ME310G1WW module documentation, I looked at https://github.com/telit/arduino-me310-library/blob/main/src/ME310.h .
In that library I do not see any method that allows you to pass a client certificate to perform the authentication for mutual TLS.
In order to use username/password authentication with AWS IoT Core, you need to use a custom authorizer which requires setting the ALPN value (see https://docs.aws.amazon.com/iot/latest/developerguide/protocols.html).
MQTT disconnects constantlyasked 6 years ago
Mqtt connection between the user's iot devices and the user's phoneasked a year ago
MQTT connection issue debuggingAccepted Answerasked 3 months ago
AWS IoT Core and MQTT 5Accepted Answerasked a day ago
MQTT Connection keeps getting disconnected/closed while publishing or subscribing to topics using LTE Modemasked 7 months ago
Handling the IoT connection failure scenarios using MQTTasked 21 days ago
FreeRTOS MQTT not connecting with Mi-Fi routerasked 10 months ago
error on establishing mqtt connection to IoT Core AwsCrtError: AWS_ERROR_MQTT_UNEXPECTED_HANGUPAccepted Answerasked 18 days ago
Establish MQTT connection between a web app and IoT coreasked 3 months ago
AWS IoT MQTT for TI CC3235SFasked 10 months ago