Hello i want to send an Arry with I2c to an other Ardunio.
My Slave Code looks like this :
float I2cArray[4];
char I2cSende[4];
void requestEvent()
{
I2cArray[0] = 1;
I2cArray[1] =2 ;
I2cArray[2] =3 ;
I2cArray[3] = 780;
for(int i =0;i<4;i++)
{
char Buff;
dtostrf(I2cArray[i],7,2,Buff);
I2cSende[i]=Buff;
}
for(int i=0;i<4;i++){
Wire.write(&I2cSende[i],sizeof(I2cSende[i]));
}
But now i dont really know how to receive the Array again.