For Arduino Yùn, this library adds 2 new REST commands, enabling tunnelling for I2C messages:
- /arduino/I2C/<device>/B|W/<address>/<count>/ -> I2C read data (dataHEX)
- /arduino/I2C/<device>/B|W/<address>/<count>/<dataHEX> -> I2C write data
note: tested using Arduino YUN and DS1307, AT24C32 - The code is optimized for smallest footprint.
This library uses Wire library (https://www.arduino.cc/en/reference/wire)
The analog I2Ctunnel uses the I2C library
see also Arduino-library-getDS1307ts (timestamp)