Home › Forums › EasyTransfer Library Support Forum › Serial Communications with Easy Transfer › Reply To: Serial Communications with Easy Transfer
Done some more testing and got the following, (So answering my own post.)
This is the declaration in the send data structure for EasyTransfer: (need to do this in the send and receive arduino and exactly the same “also the order you declare them need to be the same”)
struct SEND_DATA_STRUCTURE{
uint8_t camera3[9];
}
Then I assign the sample serial data to the Array.
uint8_t camera[9] = { 0x81, 0x01, 0x04, 0x47, 0x08, 0x0C, 0x04, 0x00, 0xFF };
With this I get the serial data across to the other Arduino. And use ‘mySerial.write’ to send it to my RS 232 device with an TTL to RS232 Circuit (max 232) .
I still have the question if this a “good” way to transmit my serial data, I have the feeling the data is being send by ET as a string and is using more Bytes then needed. So perhaps I am better of writing my own code to transfer the data ?
I will keep you posted in the meantime of my further developments.