Comments (10)
We need some parts of this code (start cmd, stop cmd, ...) in other scripts and sources. Here we have a place to look for them. Some users want to use the SDS011 on Raspberry Pis or other systems. I can't find these cmds in the mentioned source (okay, may be it's to late to look for something like this ...).
from sensors-software.
The commands are included in the Sds011.h
. I use the library this way:
SoftwareSerial serialSDS(SDS_PIN_RX, SDS_PIN_TX, false, 128);
sds011::Sds011 sensorSDS(serialSDS);
void initSDS(){
sensorSDS.set_sleep(false);
sensorSDS.set_mode(sds011::QUERY);
sensorSDS.set_sleep(true);
}
from sensors-software.
We need the serial data that ist sent to the SDS011 to start and stop. Not the library commands.
And as far as I can see, these commands are not "active" (CMD_SLEEP ist empty).
from sensors-software.
Alle the commands have values. It's a ENUM
and they get their values implicitly by incrementing the previous value.
from sensors-software.
Okay, but our intention stays the same. Having the possibility to copy the binary command code to other "languages".
from sensors-software.
This will only clean up our code. The size of the firmware file or the used mem will stay nearly the same. This would only be another lib, where we have to look for changes on any update. We had a discussion about ArduinoJSON, where our code has thrown some warnings after an update. And one user told us, that our code is faulty and that he can't compile the firmware.
from sensors-software.
I don't see a valid reason for that. In other languages there are much easier ways to implement it than in C++.
- Python: http://www.codegists.com/snippet/python/sds011_kadamski_python
- Ruby: http://www.codegists.com/snippet/ruby/sds011rb_qoobaa_ruby
- other random language
from sensors-software.
see changes in last comment. WiFiManager is another lib we had to rewrite for our project even if for slightly other reasons.
from sensors-software.
In my opinion the current SDS011 code bloat your code and is hard to read and understand. What do you think about copying the library into your repository?
from sensors-software.
Sorry, the SDS011 code will be left there.
(160 out of 2300 lines of code)
from sensors-software.
Related Issues (20)
- Please support Sensirion SEN6x sensors HOT 2
- No Data from Sensors? HOT 7
- Open source DNMS Noise sensor- ESP8266: config restores to its default measurement interval
- Beta: No automatic refresh of the values site.
- Fehlübermittlung HOT 1
- temp compensation limited? unable to apply with HTU21D
- Restart nach 1/2 Jahr: Keine Messwerte mehr HOT 4
- Wifi with Username/PW or Public with accepting the agreement first HOT 2
- continuous exception (28) with NRZ-2020-133/DE HOT 31
- Platformio Firmware compilation fails (SSD1306 library missing) HOT 5
- WiFi signal stength and BME250 air pressuse on a LCD1602 HOT 2
- bei jedem reboot geht die WLAN Konfiguration ( Passwort ) verloren und Sensor geht in Konfigurationsmodus HOT 7
- beta-esp32 branch HOT 2
- wrong ID, sensor comunity HOT 2
- SEN5X PM measurement is not working HOT 2
- Support for all data on non-rotating display #enhancement HOT 1
- Support for battery reporting #enhancement HOT 6
- Sensor displays - 141.6 °C HOT 12
- doesn't compile anymore for esp8266 HOT 1
- Remove "aircms.online" "Public air quality monitoring in Russia" from firmware HOT 5
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 sensors-software.