Closed tayRpi closed 4 years ago
This indicates that the sensor is functioning and responding correctly but doesn't have any data available for you to read.
Can you post your full code somewhere? Have you called begin()
somewhere in your code's setup?
Closing due to inactivity. If you still have problems please consider giving us more info: What platform are you using? Can you post the code to replicate the problem?
I have a SCD30 sensor, however
dataAvailable()
is alwaysfalse
.I debugged this:
dataAvailable()
callsuint16_t SCD30::readRegister(uint16_t registerAddress)
, which has the following strange behaviour: When calling the function,_i2cPort->available()
is2
, so the msb and lsb are assembled and returned:The returned value is
0
. Any idea what is wrong?