Home Forums EasyTransfer Library Support Forum Sending Strings with ET

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1874
    Anonymous
    Inactive

    Im trying to send a string  from one arduino to the other:
    String myMP3=”y16x”;
    mydata.myMp3ID= myMp3;
    ET.sendData();    //TO MP3SHIELD

     

    On the reciving side I try to read this Value to use it for playing an MP3:

    if(ET.receiveData()){

    String myMp3files  = mydata.myMp3ID;
    Serial.println(myMp3files);

    }

    The Problem is got on the Serial Monitor:

    or co
    or co
    or co

    Did have to make data conversion?? Before??

    Any suggestions?

    thx

    #2107
    Bill
    Member

    I don’t remember what the rules are but the Arduino environment handles strings in a funny way. Can you try using an array of characters instead? If you are still having problems with this I’ll have to sit down one weekend and try replicating your project. I wouldn’t have time for that for a few months though, sorry.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.