Wire.setWireTimeout()
This function setups timeout for I2C transmission. Default value is 25 milliseconds. This timeout helps slave to receive data more slowly and master doesn't hang. If timeout occurs master restarts I2C communication.
Wire.setWireTimeout(timeout)
timeout:
timeout value in milliseconds.
nothing