KrisKasprzak / EBYTE

Libraries to program and use UART-based EBYTE wireless data transceivers
244 stars 76 forks source link

SendStruct() was not declared in this scope, help #7

Closed ProVival closed 5 years ago

ProVival commented 5 years ago

I 've added the library #include "EBYTE.H" and i wrote SendStruct(&name, sizeof(Name)) ; but it says SendStruct() was not declared in this scope, here is the full code: `#include

struct Name{ int name = 40 ; int identity = 41 ; }; Name name;

EBYTE Transceiver(&Serial, 4, 5, 6);

void setup() { Serial.begin(9600); }

void loop() { SendStruct(&name, sizeof(Name)) ; delay(1000); }` What am i doing wrong, can you help me please

ProVival commented 5 years ago

Okay i 've solved it, i just had to use Transceiver.SendStruct() :D