I'm using botletics / SIM7000-LTE-Shield with Arduino Uno, I selected all examples but all end up with the same Error
C:\Users\lenovo\Documents\Arduino\libraries\SIM7000\Adafruit_FONA.cpp: In member function 'boolean Adafruit_FONA::postData(const char*, uint16_t, const char*, const char*, const char*)':
C:\Users\lenovo\Documents\Arduino\libraries\SIM7000\Adafruit_FONA.cpp:2045:3: error: expected ';' before 'readline'
readline(10000);
^~~~~~~~
exit status 1
Error compiling for board Arduino Uno.
-
1do you have some old version of the library? there is no postData function in current Adafruit_FONA.cppJuraj– Juraj ♦2021年03月15日 13:01:32 +00:00Commented Mar 15, 2021 at 13:01
-
There's no "postData" (case sensitive) in any of the files of any of the commits in the Adafruit repo for that library.timemage– timemage2021年03月15日 15:26:17 +00:00Commented Mar 15, 2021 at 15:26
1 Answer 1
I cloned botletics comparatively gigantic repo. They've modified the Adafruit library without changing the name.
The problem appears to be that you are working out of the current master branch. Switch to the latest tag, 1.1.0, and the SMS_Response example will compile just fine. I didn't try all of the others.
answered Mar 15, 2021 at 15:46
lang-cpp