vshymanskyy / TinyGSM

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

LilyGo SIM7000G + LTE + WIFI #695

Open uxigene opened 1 year ago

uxigene commented 1 year ago

[+] I have read the Troubleshooting section of the ReadMe

What type of issues is this?

[ ] Request to support a new module

[+] Bug or problem compiling the library [ ] Bug or issue with library functionality (ie, sending data over TCP/IP) [+] Question or request for help

What are you working with?

Modem: SIM7000 Main processor board: ESP32 TinyGSM version: 0.11.15

Scenario, steps to reproduce

I have LilyGo SIM7000G and trying to use TinyGSM with WiFi and LTE depending on my config. I tried to define the following:

define TINY_GSM_USE_GPRS false

define TINY_GSM_USE_WIFI true

But nothing hapens. It gets rewriten in "Just in case someone defined the wrong thing..." section. I found out that TINY_GSM_MODEM_HAS_WIFI is missing. But when defined got 'TinyGsm {aka class TinyGsmSim7000}' has no member named 'networkConnect' error. Used MqttClient example

So, my question is as follow. Can I make TinyGsm to work with ESP32 and SIM7000G in both LTE and WIFI configurations?

Expected result

Sketch compiles and both LTE and WIFI works as expected.

Actual result

Compilation error: 'TinyGsm {aka class TinyGsmSim7000}' has no member named 'networkConnect'

uxigene commented 1 year ago

UPD: I also tried to define:

define TINY_GSM_MODEM_ESP8266

and

define TINY_GSM_USE_GPRS false

define TINY_GSM_USE_WIFI true

But in that case it won't connect to my WiFi network.