Open ProfEng opened 5 years ago
I find it very hard to use SSL with SIM800. There should be a command AT+CIPSSL
to enable SSL but seems that it doesn't work always. So technically SSL shall be possible, somehow though.
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 Samir
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.