Skip to content

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

Description

@enrutador

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions