Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Fonatest" ide in arduino nano every module gives an error. #136

Open
sezginkrk opened this issue Jun 16, 2022 · 0 comments
Open

"Fonatest" ide in arduino nano every module gives an error. #136

sezginkrk opened this issue Jun 16, 2022 · 0 comments

Comments

@sezginkrk
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant