1

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.
asked Mar 15, 2021 at 12:52
2
  • 1
    do you have some old version of the library? there is no postData function in current Adafruit_FONA.cpp Commented 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. Commented Mar 15, 2021 at 15:26

1 Answer 1

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.

Direct link to the zip file for the 1.1.0 tag.

answered Mar 15, 2021 at 15:46

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.