thinger-io / Arduino-Library

IOTMP Arduino Library for connecting devices to thinger.io #IoT
https://thinger.io
MIT License
114 stars 66 forks source link

Using Thinger TinyGSM library with SIM7600 #44

Closed JoelMuhanguzi closed 5 months ago

JoelMuhanguzi commented 2 years ago

I am wondering, is it possible to connect to the thinger io dashboard using the tinygsm library but using a 4g module like the sim7600g, the example in the library just shows a few modems as shown below.

// Select your modem:

define TINY_GSM_MODEM_SIM800

//#define TINY_GSM_MODEM_SIM900 //#define TINY_GSM_MODEM_A6 //#define TINY_GSM_MODEM_A7 //#define TINY_GSM_MODEM_M590

bautisflow commented 2 years ago

Not sure if it will work, but there is certainly a possibility. There are reports of it working with a SIM7000E.

But as you guessed by the definitions posted we have only tested with the above devices. Nevertheless, if you want to test it out use the following definition:

TINY_GSM_MODEM_SIM7600

You may find better support and additional information at Thinger's Community.

Please let us know if you make it work.

Good luck!

reusables-official commented 5 months ago

I am using SIMCOM 7600G-H modem and it seems to work ok, but I have to disable SSL, which isn't the best but at least it's functional

#define _DISABLE_TLS_

reusables-official commented 4 months ago

@JoelMuhanguzi I see you closed this issue recently, however, I'm wondering why we have to disable TLS for to use ThingerTinyGSM and if there are any plans to repair this issue?

JoelMuhanguzi commented 4 months ago

Hey @reusables-official I discovered that the TinyGSM library had not yet updated the functions to handle https (TLS) communication but is well implemented for the http communication

reusables-official commented 4 months ago

Ok got it, thanks Joel, that makes sense. I have to import a whole other library to communicate with an SSL endpoint via TinyGSM so yes, their support for TLS is super limited.

JoelMuhanguzi commented 4 months ago

Yeap, personally I have tried SSLClient and it worked for me, https://www.arduino.cc/reference/en/libraries/sslclient/, you could try it out too

reusables-official commented 4 months ago

Thanks for the tip! I went with https://github.com/govorox/SSLClient but the library you linked looks quite good.