Every Wire.* call ignores the return values, which may indicate errors. It would be nice as a user to know if there was an error on the bus, so that I could compensate with e.g. a retry. So maybe the BME280Class::read* and BME280Class::write* methods could instead of returning void, return a bool or directly the return code from a failing Wire operation.
Every Wire.* call ignores the return values, which may indicate errors. It would be nice as a user to know if there was an error on the bus, so that I could compensate with e.g. a retry. So maybe the BME280Class::read* and BME280Class::write* methods could instead of returning void, return a bool or directly the return code from a failing Wire operation.