Go Down

Topic: problem sd card (Read 493 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.

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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy