I am trying to make an IoT device where I'd like to send some sensor data over a cellular network. I would like to use a GSM module for this project. I have a server that will receive the data over MQTT. My main problem is that my server will only connect over SSL. I have a custom CA certificate generated by my server that I need to apply while establishing a connection to the server along with a userid and password. I have to have use this sever only and it will not work without this SSL certificate. However, I have no idea how I should approach this using GSM.
Can you please suggest me which GSM module should I choose? As I was unable to figure out which one would support mqtt with SSL.
Can you suggest me how should I code this? For example some relevant examples or libraries.
I am planning to use an arduino uno and a DHT11 sensor for this project.
If I don't mess up....
GSM is the telephone network and it's not the same as Wifi & Co.
Does the distance allow use of Wifi directly and drop the GSM stuff?
Actually, I intend to use the device where wifi will not be available and maybe to monitor stuff that may move from one place to another.
Can you please suggest how can I do that? How can I add my own CA certificate? Can I implement that using a SIM800L? if yes, can you please suggest me any examples or any library?
Can you please provide any examples of such modules?
So after a lot of research, I have ordered a module with a 4G Lte Gsm Modem (A7672S). I chose this because its specifications said that it supports SSL. Can anyone now help me with how I can program to send my sensor data to my MQTT server using SSL using my custom certificates?
what modem are you using ?
I recently used a Quectel EC21 to use MQTT over SSL
none trivial - multiple AT commands
you need to read the SSL/TLS sections of your modem manual to find the correct AT commands to use
Quectel usually give examples of use
Hi Horace, I'm using this device: T-SIM7080G-S3 ESP32-S3, which has a built in modem 7080.
With Mosquitto MQTT server on port 1883 it works fine, but when trying to connect to AWS IOT with 8883, I set up the certificates using AT commands, but something has to be wrong, as the connection cannot be established. (If using a WIFI connection and the AWS IOT client this certificates work well)
I have also tried to find a solution using ChatGPT and Bard, but they also fail...
The main problem is that I cannot find documentation on how to proceed.