vshymanskyy / TinyGSM

A small Arduino library for GSM modules, that just works
GNU Lesser General Public License v3.0
1.95k stars 723 forks source link

SIM7000G lilygo to AWS IOT CORE MQTT #611

Open TECA-IOT opened 2 years ago

TECA-IOT commented 2 years ago

Hello, Please I need to connect a sim7000G to AWS IoT Core, I am using the Tinygsm library. I can do simple MQTT communication, but I can't find any documentation or tutorial to load the certificates "CA", "XXXXXXXX-certificate.pem.crt" and "XXXXXXXX-private.pem.key"

Many in forums that look for the same thing but there is no clear documentation. I will appreciate it. Thanks!

SRGDamia1 commented 2 years ago

I'm sorry, I don't have any experience yet with uploading AWS certificates.

OussamaNRCI commented 2 years ago

Hi @TECA-IOT

Did you find how to load the certificate and connect the module with AWS IoT Core !!

RosiersRobin commented 2 years ago

In need of this too!

zibyan123 commented 2 years ago

I am also trying to connect sim7000g with aws but I am not able to convert certificates .Is there any solution?

andygrillo commented 1 year ago

Any updates on this ?

jtkhair commented 1 year ago

Following up

dankpool commented 1 year ago

did anyone get how to connect with tinygsm library to aws iot core

yuzukihironaka-lefixea commented 1 year ago

Hello,

We could connect to AWS IoT Core by wrapping TinyGsm with some SSLClient Library.

In my project, I use https://github.com/alkonosst/SSLClientESP32 library.

#include <TinyGsm.h>
#include <SSLClientESP32.h>

TinyGsm modem(SerialAT);
TinyGsmClient base_client(modem, 0);
// wrap TinyGsmClient with SSLClient
SSLClientESP32 ssl_client(&base_client);
PubSubClient mqtt(ssl_client);

void setup() {
    ...
    // set certificates
    sslclient.setCACert(rootca);
    sslclient.setCertificate(certificate);
    sslclient.setPrivateKey(privatekey);

    // connect to broker
    mqtt.setServer(broker, port);
    mqtt.connect();
}

Basicly, It works fine.

But I also have issue https://github.com/alkonosst/SSLClientESP32/issues/9

I would like to discuss this issue for make stuff more stable :(