-
-
Notifications
You must be signed in to change notification settings - Fork 153
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 with SSL #14
Comments
Not exactly sure but found this: What do you think? |
I find it very hard to use SSL with SIM800. There should be a command |
Hello @MaJerle I am curently using your lwgsm and i really appriciate your effort of crafting such a beautiful and well organised library. I have some questions while going through your sample example of mqtt and if you can help me understanding it little better it will be great. Background : I saw you are using default SSL certificate of SIM800 TCP AT cmd in MQTT communication. when i enqury with SIMCOM, they told me that the module actually donot have any default certificate for MQTT brokers. To use the SSL over MQTT we need to push/write the rootca, client certificate and key to the SIM800 filesystem. Query:
Note: I also found out from SIMCOM that the newer virsion(released end of dec 2020) of SIM800 series have larger filesystem memory(32MB) to store SSL and support SSL internally. I am not sue but from your previous comment i saw you tried the SSL and didnot work. But may be the older version of the chip didnot support SSL. Just my guess. I am looking forward for your reply. Thanks |
So far I have no defined roadmap of the lib. I'm more than open to get proposals from community. |
Hi Mr. Tilen,
Did you implement any MQTT example with SSL encryption. I changed:
res = gsm_conn_start(&client->conn, GSM_CONN_TYPE_TCP, host, port, client, mqtt_conn_cb, 0);
with:
res = gsm_conn_start(&client->conn, GSM_CONN_TYPE_SLL, host, port, client, mqtt_conn_cb, 0);
at gsm_mqtt_client.c Line: #1103 and changed port of broker to 8883. It gives me GSM_MQTT_CONN_STATUS_TCP_FAILED error code.
Do I miss anything?
Appreciate for your help.
Aykut.
The text was updated successfully, but these errors were encountered: