I see that related issues have been asked before, but after exhaustive research, I have been unable to find neither an explanation of the problem nor a solution.
And this is the error I get went trying to compile:
In file included from /home/lisandro/Escritorio/1 - MECA trabajos/Zaxis - Flow Meter Study/Principal References/FlowMeter Prototype/Original Zaxis Code References/Flow_Controller/Flow_Controller.ino:6:0:
/home/lisandro/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/Wire/src/Wire.h: In function 'void ReadDif()':
/home/lisandro/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/Wire/src/Wire.h:103:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int address, int size);
^
/home/lisandro/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/Wire/src/Wire.h:101:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t address, uint8_t size);
^
In file included from /home/lisandro/Arduino/libraries/Grove_-_I2C_High_Accuracy_Temp_Humi_Sensor_SHT35/Seeed_SHT35.h:36:0,
from /home/lisandro/Arduino/libraries/Grove_-_I2C_High_Accuracy_Temp_Humi_Sensor_SHT35/Seeed_SHT35.cpp:32:
/home/lisandro/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/Wire/src/Wire.h: In member function 'err_t SHT_IIC_OPRTS::request_bytes(u8*, u16)':
/home/lisandro/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/Wire/src/Wire.h:103:13: note: candidate 1: uint8_t TwoWire::requestFrom(int, int)
uint8_t requestFrom(int address, int size);
^
/home/lisandro/.arduino15/packages/esp32/hardware/esp32/1.0.6/libraries/Wire/src/Wire.h:101:13: note: candidate 2: uint8_t TwoWire::requestFrom(uint8_t, uint8_t)
uint8_t requestFrom(uint8_t address, uint8_t size);
^
Sketch uses 245282 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 15272 bytes (4%) of dynamic memory, leaving 312408 bytes for local variables. Maximum is 327680 bytes.
The code seems to compile though, so I'm not sure either if this is ok and I can upload it.
Any hint will be much appreciated. Thank you in advance!!
The problem that you have is a sadly a known and common problem. There is no good documentation and no good rules for the parameters of the functions of the Wire library. A library written for a different board might not work on your ESP32.
Could you show the sketch ?
You have to change the parameters of Wire.requestFrom() in the function ReadDif().
I'm afraid that you also have to change the code of the Seeed SHT35 library.
I'm developing a firmware for a device I was given with the indication that that version was needed in order for the two kernels of the ESP32 to work properly (it's working indeed). I have enough to do, so I didn't want to question that
Sorry, I forgot to answer that: the libraries I'm using for the "EEPROM" are for ESP32, so I asume they take care of that and let you work like if you do have an EEPROM. It works so far!