For the ESP32 you need to use slaveWrite. It is used in the onReceive function not the onRequest See post #7 in this topic