Comments (2)
Hi @lemorage
The error codes are platform dependent. I2C in general only knows success or fail. However, our Arduino drivers use the arduino-core
library which has its own error codes defined in SensirionErrors.h.
If you use the example program as is, the error code will be translated via the errorToString
function and you should see the resulting error also as text.
Where the error seems to come from in your case:
scd4x.getDataReadyFlag
uses SensirionI2CCommunication::sendFrame
from arduino-core, which has some error handling. 267 is the bitwise OR combination of the high level error WriteError
and the low level error I2cAddressNack
. This means that there was no response on the I2C address you used. But errorToString
should translate that already for you.
Hope this helps!
from arduino-i2c-scd4x.
Ohh, thank you for your detailed explanation! I suspected there should be something wrong with the I2C devices, but I couldn't find the exact reason. The program just didn't print anything when errorToString(error, errormsg, 256);
was there, and I had to manually print the return value of scd4x.getDataReadyFlag
to see if it was 0. So I really thought hard to figure out what is the sense of this error number.
from arduino-i2c-scd4x.
Related Issues (20)
- Library error in Forced Recalibration HOT 7
- Documentation error, bad information for getDataReadyStatus HOT 4
- Measure stability at startup HOT 1
- Cannot receive measurement data HOT 1
- SEK-SCD41 kit stopped working: "Invalid sample detected, skipping." self-test error code: 196 HOT 11
- Question about the forced calibration procedure HOT 1
- temperature and humidity conversion not exact HOT 1
- Error trying to execute readMeasurement() HOT 3
- Comments don't match function HOT 1
- How to use multiples SCD4x in the same arduino ? HOT 2
- Adafruit QT-Py ESP32 S2 and Pimoroni SCD41: Received NACK HOT 3
- Release a new version from master HOT 2
- How to determine the model number HOT 12
- The scd41 sensor only detects upto 5000 ppm, how do i use it to expand its range upto 40,000 ppm? HOT 2
- Unable to read CO2 but temperature and humidty works fine HOT 3
- Review and sync the example code with function getDataReadyStatus() HOT 2
- Example needed to print some internal values HOT 4
- Will there be an example for connecting multiple sensors? HOT 6
- Location of the `errorToString` function HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from arduino-i2c-scd4x.