Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can Send Array of struct(of Strings) using ET ? #10

Open
enrutador opened this issue Mar 24, 2016 · 0 comments
Open

Can Send Array of struct(of Strings) using ET ? #10

enrutador opened this issue Mar 24, 2016 · 0 comments

Comments

@enrutador
Copy link

Hi Madsci1016
Thanks for your work ¡¡. I have a problem using your lib. The question is: I can transfert array of struct (strings content)between arduinos with softserial ? I using this code:

TX Arduino1:

struct SEND_DATA_STRUCTURE
{
String Nombre;
String RfidTagIDNombre;
String carril;
String Coche;
String RfidTagIDCoche;
};

SEND_DATA_STRUCTURE Piloto[6];

Output log:
dentro del parser 5
Nombre:oskar
Coche:Mitsu
Carril:1
RfidTagIDCoche:f48cc7be
RfidTagIDNombre:cd4941f4

*RX Arduino2:
*

struct RECEIVE_DATA_STRUCTURE
{
String Nombre;
String RfidTagIDNombre;
String carril;
String Coche;
String RfidTagIDCoche;
};

RECEIVE_DATA_STRUCTURE Piloto[6];

void serialEventArdus() {
if(ET.receiveData()){
Serial.print("Nombre:"); Serial.println(Piloto[0].Nombre);

}

Output log:

Nombre:¸¸¸¸¸

A lot of thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant