HI,
i am having issues compiling an MKR GSM 1400 board using the mkrgsm-feature-ftp library. This library is an add-on to the normal mkrgsm library, that allows FTP comms (GitHub - tryhus/MKRGSM at feature/ftp). The normal mkrgsm library compiles for the examples provided however the mkrgsm-feature-ftp library will not complie with the given FTP.ino example program.
I have used this library in the past and it worked so i dont know why it is not working now. The only thing i could think of was that an update to the normal mkrgsm library has created a problem with the mkrgsm-feature-ftp library.
Any help is much appreciated.
Cheers.
Error messages are below;
Arduino: 1.8.19 (Linux), Board: "Arduino MKR GSM 1400"
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSM.cpp: In member function 'long unsigned int GSM::getTime()':
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSM.cpp:340:7: error: 'strptime' was not declared in this scope
if (strptime(response.c_str(), "+CCLK: \"%y/%m/%d,%H:%M:%S", &now) != NULL) {
^~~~~~~~
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSM.cpp:340:7: note: suggested alternative: 'strftime'
if (strptime(response.c_str(), "+CCLK: \"%y/%m/%d,%H:%M:%S", &now) != NULL) {
^~~~~~~~
strftime
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSM.cpp: In member function 'long unsigned int GSM::getLocalTime()':
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSM.cpp:369:7: error: 'strptime' was not declared in this scope
if (strptime(response.c_str(), "+CCLK: \"%y/%m/%d,%H:%M:%S", &now) != NULL) {
^~~~~~~~
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp: In member function 'bool GSMFTP::write(void*, size_t, const arduino::String&, int32_t)':
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp:440:9: error: 'class ModemClass' has no member named 'escapeSequence'
MODEM.escapeSequence(1500, 0);
^~~~~~~~~~~~~~
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp: In member function 'bool GSMFTP::read(void*, size_t, const arduino::String&, int32_t)':
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp:479:24: error: 'class ModemClass' has no member named 'read'; did you mean 'ready'?
uint32_t res = MODEM.read((uint8_t*)data, size, timeout);
^~~~
ready
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp:482:11: error: 'class ModemClass' has no member named 'escapeSequence'
MODEM.escapeSequence(1000, 1000, true);
^~~~~~~~~~~~~~
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp: In member function 'int GSMFTP::streamOutReady()':
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp:527:11: error: 'class ModemClass' has no member named 'escapeSequence'
MODEM.escapeSequence(1500, 0);
^~~~~~~~~~~~~~
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp: In member function 'int GSMFTP::streamIn(void*, size_t, int32_t)':
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp:577:24: error: 'class ModemClass' has no member named 'read'; did you mean 'ready'?
uint32_t res = MODEM.read((uint8_t*)data, size, timeout);
^~~~
ready
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp: In member function 'int GSMFTP::streamInReady()':
/home/richard/Dev/sketchbook-Ard/libraries/MKRGSM-feature-ftp/src/GSMFTP.cpp:590:11: error: 'class ModemClass' has no member named 'escapeSequence'
MODEM.escapeSequence(1000, 1000, true);