In a group of 3 arduinos - One acting as master and transmitting to two slaves.
This seems to work aok - with one exception - one of the slaves seems to receive the data transmitted by the other slave (but not vice versa - it is always the same slave that receives the data)
In the setup the slaves have addresses of 0x20 and 0x30 (set in the properties) with mask of 0xff. They are also set to transmit different data (nothing exciting just one transmitting an increasing variable and one a constant (123))
The code:
Slave at 0x20
Slave at 0x3033 addr 0x20
Transmit
123 Data
Sender49 addr 0x30
Transmit
Any suggestions as to what is going wrong (if it is wrong?)20 sent 123
30 sent 5
The standard Arduino libraries use the i2c hardware interrupt to jump to an onReceive handler - which seems a neater way of dealing with waiting for a message. Probably problematic to implement something similar when targeting multiple MCUs?
Martin