Announcement

Collapse
No announcement yet.

SD CARD Reader

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • SD CARD Reader

    I need to write the SSID and password within the SD card and play them.
    I can decide which character from my file?
    so that I can read before SSDI and then password

    i Use
    handle = Display.file_Open("SAMPLE.txt",'r');
    char Reader[23];
    Display.putstr("READING SAMPLE.TXT: \n");
    Display.file_Read(Reader,30,handle); //23 caratteri a riga
    Display.putstr(Reader);
    Display.file_Close(handle);

  • #2
    Dear JHON,

    Here is a code you can use to extract the password and SSID

    char index;
    char Reader[23];

    char password[13];
    char SSID[10];


    for(index=0;index<13;index++) //if password is the string from 0 to 13
    {
    password[index]=Reader[index];
    }


    for(index=13;index<23;index++) //if SSID is the string from 14 to 23
    {
    SSID[index]=Reader[index];
    }

    Best regards,

    Comment

    Working...
    X