So, how many bytes should I expect to receive? It's fine if you don't know, it's just that the following code isn't working and I'm not sure what to do:
#include <Wire.h> //include wire library
void setup()
{
Wire.begin();
Wire.requestFrom(0x10, 10);
if(Wire.available())
{
char rcvData = Wire.read();
Serial.println(rcvData);
}
Serial.begin(9600);
}
void loop()
{
Wire.requestFrom(0x10, 10);
if(Wire.available())
{
char rcvData = Wire.read();
Serial.println(rcvData);
}
delay(1000);
}