Go Down

Topic: problem sd card (Read 459 times) previous topic - next topic

EJTR


someone Know why this code not works? thanks.
Code: [Select]


     String call = "llamadauno";
     if (SD.exists(call))
     {
         digitalWrite(led,HIGH);
     }



mistake: no matching function for call to 'SDClass::exists(String&)'

fat16lib

The argument to exists() must be type char*, not String.

File names must be short 8.3 format.  "llamadauno" is too long.

The maximum number of characters before the period is 8.

Robert Getzner

http://arduino.cc/forum/index.php?topic=84378.0
and
http://stackoverflow.com/questions/14467568/arduino-opening-sd-filename-as-string


btw the first two hits on google searching for "SD.exists(call)  SDClass::exists(String&)"
http://robertgetzner.com/PersonalWordpress/category/computer/arduino/

Go Up