Xinyuan-LilyGO / LilyGO-T-SIM7000G

LilyGO T-SIM7000G
https://pt.aliexpress.com/item/4000542688096.html
293 stars 128 forks source link

Using HTTPS instead of HTTP #125

Closed danerthompson closed 2 years ago

danerthompson commented 3 years ago

Hello,

I've been trying to use my LILYGO T-SIM7000G to act as a tracker and send GPS data to a Google Sheet via Google Scripts. However, it seems that Google Script requires data to be sent with HTTPS. I've been using this a sketch based off of this code here: https://github.com/mudmin/AnotherMaker/blob/master/Lilygo-7000g/Arduino_Simple_API/rough_api_test.ino

I haven't been able to find much documentation on using HTTPS with this board. If it helps, the Google Script returns 301 every time you try and send a GET request via HTTP.

I've also tried setting #define TINY_GSM_MODEM_SIM7000SSL, but that caused the GPRS to not connect.

Any ideas?

Thanks.

TravisDuck999 commented 3 years ago

While I may not be able to help with C++, I can tell you that I have HTTPS working on Micropython using mrequests.

Sorry I could not be of more help.

LilyGO commented 2 years ago

Refer to this. You can check out the SSL application documentation for 7000 G