Thanks for the reply. After reply I made some changes to the code and it works partially. I am able to send whole strings “<A,10,20,30>” from Master to Slave. Working on the receiving part.
I am reconstructing the string from single bytes received from I2C.
Here is the code for the slave:
void receiveEvent(int howMany)
str = ‘\0’;
while(0 < Wire.available())
str[position] = Wire.receive();
if(str[position] == ‘>’)
The Issue is when the Slave receives ‘>’ it stops and the serial-output is as follows:
And it stops there . Please help.