Pages: [1]   Go Down
Author Topic: problem sd card  (Read 437 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 0
Posts: 122
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset


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

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


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

0
Offline Offline
Edison Member
*
Karma: 64
Posts: 1635
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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.
Logged

Offline Offline
Newbie
*
Karma: 3
Posts: 39
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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&)"
Logged


Pages: [1]   Go Up
Jump to: