Hi, can anyone point me to any Master/Slave examples for requesting and returning strings of up to 200 characters please?
I've got an 'I/O' Nano which is monitoring port expander inputs and IR commands and must initiate appropriate responses to triggers, but there isn't enough remaining memory to also include reading of the responses from a config file on SDcard, so I want to off-load that task to a slave 'SD' Nano.
The 'I/O' master would send the triggering channel number to the 'SD' slave and request the corresponding channel number response line from the config file, then parse the returned string for sequences of voice files, IR transmit codes, relay combinations, and various other temperature, date and time alarms, durations and delay parameters etc.
The 'I/O' master is already using i2c for the port expanders and RTC, so I was planning to use the i2c for the 'SD' slave if I could (to make the most of memory) then hopefully at some future date might add an additional master 'Web Server' which could also request its page data from the SD slave. Anyway that was the plan, but I'm not an expert, and I can't figure out how to get past the Wire libraries 32 byte maximum i2c transfer limitation - so any alternative master/slave long string examples or suggestions would be appreciated.