elixir-sensors / bmp280 Goto Github PK
View Code? Open in Web Editor NEWUse Bosch barometric pressure sensors in Elixir
License: Apache License 2.0
Use Bosch barometric pressure sensors in Elixir
License: Apache License 2.0
I saw this in the Neves Livebook when no sensor is connected.
This happens because we initialize the sensor in handle_continue
. The error followed by {:ok, pid}
result is a little confusing from the library user perspective, but I guess it is a matter of our design decision.
Line 152 in cecb379
If we initialize the sensor in init
callback not in handle_continue
, we can return :error
in case something goes wrong in the sensor initialization but then caller process would need to wait until the whole initialization gets completed.
To me personally from users perspective, I prefer to return {:error, reason}
over always return {:ok, pid}
unless initialization is painfully slow.
That value was added before #21.
Catalog: https://www.bosch-sensortec.com/products/environmental-sensors/pressure-sensors/bmp388/
Data sheet: https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bmp388-ds001.pdf
Github: https://github.com/BoschSensortec/BMP3-Sensor-API
Adafruit: https://www.adafruit.com/product/3966
Currently Bosch BMP280 link is broken in README. The other links are good.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.