Closed jaka87 closed 4 years ago
Interesting. What board are you using?
Thanks for your feeback!
On Sun 1 Mar 2020, 9:10 p.m. jaka87 notifications@github.com wrote:
Hi there. I was playing around with my project and decided to update to latest version of your script. i got some errors and i tough that maybe it's my code, but got the same with the test sample.
First i get
home/jaka87/Arduino/libraries/ArduinoSIM800L/src/GPRS.cpp: In function '_GLOBAL__I_65535_0sleep3.ino.cpp.o': /home/jaka87/Arduino/libraries/ArduinoSIM800L/src/GPRS.cpp:45:12: error: variable 'OK' with dynamic initialization put into program memory area 45 | const char OK_ PROGMEM = "OK"; | ^ lto-wrapper: fatal error: /usr/bin/avr-gcc returned 1 exit status compilation terminated. /usr/bin/avr-ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status
but then I tried to uncomment the GPRS and i then get
/home/jaka87/Arduino/libraries/ArduinoSIM800L/src/Http.cpp: In member function 'Result HTTP::connect(const char*)': /home/jaka87/Arduino/libraries/ArduinoSIM800L/src/Http.cpp:56:19: error: 'openGPRSContext' was not declared in this scope 56 | Result result = openGPRSContext(this, apn); | ^
~~~~~~ /home/jaka87/Arduino/libraries/ArduinoSIM800L/src/Http.cpp: In member function 'Result HTTP::disconnect()': /home/jaka87/Arduino/libraries/ArduinoSIM800L/src/Http.cpp:66:19: error: 'closeGPRSContext' was not declared in this scope 66 | Result result = closeGPRSContext(this); | ^~~~Using library ArduinoJson at version 6.13.0 in folder: /home/jaka87/Arduino/libraries/ArduinoJson Using library ArduinoSIM800L at version 0.2 in folder: /home/jaka87/Arduino/libraries/ArduinoSIM800L Using library SoftwareSerial at version 1.0 in folder: /usr/share/arduino/hardware/archlinux-arduino/avr/libraries/SoftwareSerial exit status 1 Error compiling for board Arduino Pro or Pro Mini.— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/carrascoacd/ArduinoSIM800L/issues/35?email_source=notifications&email_token=ABBWFOHPI7L7I5MIHBB7FRTRFK6LHA5CNFSM4K7H5G3KYY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4IRQRPIQ, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABBWFOHNLFNHHN5SVX3PA7LRFK6LHANCNFSM4K7H5G3A .
Im using arduino pro mini, but I also tried compiling for nano and uno. I also tried using different Arduino IDE 1.8.12 and 1.8.9
All result in same error
@jaka87, could you try the branch of the PR https://github.com/carrascoacd/ArduinoSIM800L/pull/41? I fixed the errors. If it works, I'll release a new bugfix version.
Hi there. I was playing around with my project and decided to update to latest version of your script. i got some errors and i tough that maybe it's my code, but got the same with the test sample.
I get