vshymanskyy / TinyGSM

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

TinyGsmTCP.tpp:324:2: error: #error Modem client has been incorrectly created #368

Closed abhaysbharadwaj closed 4 years ago

abhaysbharadwaj commented 4 years ago

edit: update: Arduino IDE updated to 1.8.12. compiling now.

Hello, I am trying to work with SIM7600E module. Arduino IDE: 1.8.10 TinyGSM: V0.10.1

At the time of compilation, I am getting this error:

``

Using previously compiled file: C:\Users\abhay\AppData\Local\Temp\arduino_build_297428\sketch\src\WebSocketClient.cpp.o
C:\Users\abhay\AppData\Local\Temp\arduino_build_297428\sketch\src\TinyGsmTCP.tpp:152:2: error: #error Modem client has been incorrectly created

 #error Modem client has been incorrectly created

  ^

C:\Users\abhay\AppData\Local\Temp\arduino_build_297428\sketch\src\TinyGsmTCP.tpp:230:2: error: #error Modem client has been incorrectly created

 #error Modem client has been incorrectly created

  ^

C:\Users\abhay\AppData\Local\Temp\arduino_build_297428\sketch\src\TinyGsmTCP.tpp:287:2: error: #error Modem client has been incorrectly created

 #error Modem client has been incorrectly created

  ^

C:\Users\abhay\AppData\Local\Temp\arduino_build_297428\sketch\src\TinyGsmTCP.tpp:324:2: error: #error Modem client has been incorrectly created

 #error Modem client has been incorrectly created

  ^

``

If I go to that file and comment out the #error lines, The code compiles and uploads successfully, but during HTTP GET request, the microcontroller hangs.

Can anyone guide me in where I am going wrong?