Welcome to EnviroDIY, a community for do-it-yourself environmental science and monitoring. EnviroDIY is part of WikiWatershed, a web toolkit designed to help citizens, conservation practitioners, municipal decision-makers, researchers, educators, and students advance knowledge and stewardship of fresh water. New to EnviroDIY? Start here

Reply To: Trouble initializing XBee3 LTE-M

Home Forums Mayfly Data Logger Trouble initializing XBee3 LTE-M Reply To: Trouble initializing XBee3 LTE-M

#13880
Cal
Participant

Sara noted above that she re-wrote TinyGsm – so I decided it was a good time to update all my code with new libraries.  Trouble is, I can’t get TinyGSM with templates from EnviroDIY GitHub to compile on the Arduino IDE (I’m not using PlatformIO).  I’m sure I’m making a simple mistake or compiler option but can’t figure it out being a novice C++ programmer. Here’s the the start of a long list of errors:

In file included from ….\libraries\TinyGSM\src/TinyGsmClientXBee.h:26:0,
from ….\libraries\TinyGSM\src/TinyGsmClient.h:93,
from ….\my_sketch.ino:229:
….\libraries\TinyGSM\src/TinyGsmModem.tpp:15:7: error: ‘TinyGsmModem’ is not a template
class TinyGsmModem {
^~~~~~~~~~~~
In file included from ….\libraries\TinyGSM\src/TinyGsmBattery.tpp:12:0,
from ….\libraries\TinyGSM\src/TinyGsmClientXBee.h:24,
from ….\libraries\TinyGSM\src/TinyGsmClient.h:93,
from …\my_sketch.ino:229:
….\libraries\TinyGSM\src/TinyGsmCommon.h:208:7: note: previous declaration here
class TinyGsmModem
^~~~~~~~~~~~
In file included from ….\libraries\TinyGSM\src/TinyGsmClient.h:93:0,
from ….\my_sketch.ino:229:
….\libraries\TinyGSM\src/TinyGsmClientXBee.h:69:40: error: expected template-name before ‘<‘ token
class TinyGsmXBee : public TinyGsmModem<TinyGsmXBee>,…..