ClosedCube_SHT31D_Arduino icon indicating copy to clipboard operation
ClosedCube_SHT31D_Arduino copied to clipboard

STM32 compatibility

Open pabloandresm opened this issue 5 years ago • 0 comments

When compiling this library against any STM32 it fails: src\ClosedCube_SHT31D.cpp:416:8: error: 'class TwoWire' has no member named 'readBytes' Wire.readBytes(buf, (uint8_t)2);

The problem is that, for the STM32, the Wire class is not inherited from Stream class, so it has no readBytes method.

Consider replacing the readBytes to read 2 bytes to be able to make this library compatible with STM32.

pabloandresm avatar Feb 18 '20 20:02 pabloandresm