vshymanskyy / TinyGSM

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

Has no member named 'networkConnect' #472

Closed Cutiino closed 3 years ago

Cutiino commented 3 years ago

Hello, I am trying connect TTGo Tcall ESP32 to Wifi throught of modem.networkConnect(wifiSSID, wifiPass) function, however, it always have a issue and don't compile it. The issue shows that I have is: "'TinyGsm {aka class TinyGsmSim800}' has no member named 'networkConnect'" I followed all the steps of the library but I couldn't fix the issue. To the connection with GPRS I don't have problem but also, I would like connect me to Wifi and be able to use both connections.

SRGDamia1 commented 3 years ago

The SIM800 is a cellular chip, not WiFi. You can't use WiFi commands with it. The ESP module in this library is for communicating with an ESP programmed with AT firmware, not for using the ESP itself as the main brain. If you're using the ESP32 as your mcu (as you probably are) and the attached SIM800 as your cellular component, you need to use the WiFi commands for whatever core you're using on your ESP and then TinyGSM only for communication with the SIM800.