You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library\examples\FONAtest\FONAtest.ino: In function 'void loop()':
FONAtest:626:60: error: no matching function for call to 'Adafruit_FONA::enableNTPTimeSync(bool, const char [13])'
if (!fona.enableNTPTimeSync(true, F("pool.ntp.org")))
^
In file included from C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library\examples\FONAtest\FONAtest.ino:28:0:
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:120:8: note: candidate: bool Adafruit_FONA::enableNTPTimeSync(bool, FONAFlashStringPtr)
bool enableNTPTimeSync(bool onoff, FONAFlashStringPtr ntpserver = 0);
^~~~~~~~~~~~~~~~~
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:120:8: note: no known conversion for argument 2 from 'const char [13]' to 'FONAFlashStringPtr {aka const arduino::__FlashStringHelper*}'
FONAtest:778:121: error: no matching function for call to 'Adafruit_FONA::HTTP_POST_start(char [80], const char [11], uint8_t*, size_t, uint16_t*, uint16_t*)'
if (!fona.HTTP_POST_start(url, F("text/plain"), (uint8_t ) data, strlen(data), &statuscode, (uint16_t )&length)) {
^
In file included from C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library\examples\FONAtest\FONAtest.ino:28:0:
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:165:8: note: candidate: bool Adafruit_FONA::HTTP_POST_start(char, FONAFlashStringPtr, const uint8_t, uint16_t, uint16_t*, uint16_t*)
bool HTTP_POST_start(char url, FONAFlashStringPtr contenttype,
^~~~~~~~~~~~~~~
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:165:8: note: no known conversion for argument 2 from 'const char [11]' to 'FONAFlashStringPtr {aka const arduino::__FlashStringHelper}'
exit status 1
no matching function for call to 'Adafruit_FONA::enableNTPTimeSync(bool, const char [13])'
thanks in advance
The text was updated successfully, but these errors were encountered:
Debug error:
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library\examples\FONAtest\FONAtest.ino: In function 'void loop()':
FONAtest:626:60: error: no matching function for call to 'Adafruit_FONA::enableNTPTimeSync(bool, const char [13])'
if (!fona.enableNTPTimeSync(true, F("pool.ntp.org")))
^
In file included from C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library\examples\FONAtest\FONAtest.ino:28:0:
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:120:8: note: candidate: bool Adafruit_FONA::enableNTPTimeSync(bool, FONAFlashStringPtr)
bool enableNTPTimeSync(bool onoff, FONAFlashStringPtr ntpserver = 0);
^~~~~~~~~~~~~~~~~
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:120:8: note: no known conversion for argument 2 from 'const char [13]' to 'FONAFlashStringPtr {aka const arduino::__FlashStringHelper*}'
FONAtest:778:121: error: no matching function for call to 'Adafruit_FONA::HTTP_POST_start(char [80], const char [11], uint8_t*, size_t, uint16_t*, uint16_t*)'
if (!fona.HTTP_POST_start(url, F("text/plain"), (uint8_t ) data, strlen(data), &statuscode, (uint16_t )&length)) {
^
In file included from C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library\examples\FONAtest\FONAtest.ino:28:0:
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:165:8: note: candidate: bool Adafruit_FONA::HTTP_POST_start(char, FONAFlashStringPtr, const uint8_t, uint16_t, uint16_t*, uint16_t*)
bool HTTP_POST_start(char url, FONAFlashStringPtr contenttype,
^~~~~~~~~~~~~~~
C:\Users\nmentese\Documents\Arduino\libraries\Adafruit_FONA_Library/Adafruit_FONA.h:165:8: note: no known conversion for argument 2 from 'const char [11]' to 'FONAFlashStringPtr {aka const arduino::__FlashStringHelper}'
exit status 1
no matching function for call to 'Adafruit_FONA::enableNTPTimeSync(bool, const char [13])'
thanks in advance
The text was updated successfully, but these errors were encountered: