forked from airgradienthq/arduino
Merge branch 'develop' into feature/send-pms-sensor-fw-version-to-ag-cloud
This commit is contained in:
commit
db21648e91
21 files changed
+279
-116
No files matched your search
+4
-2
@@ -24,12 +24,13 @@ public:
|
||||
uint16_t getCount10(void);
|
||||
|
||||
/** For PMS5003T*/
|
||||
uint16_t getTemp(void);
|
||||
int16_t getTemp(void);
|
||||
uint16_t getHum(void);
|
||||
uint8_t getFirmwareVersion(void);
|
||||
uint8_t getErrorCode(void);
|
||||
|
||||
int pm25ToAQI(int pm02);
|
||||
int compensated(int pm25, float humidity);
|
||||
|
||||
private:
|
||||
Stream *stream;
|
||||
@@ -38,7 +39,8 @@ private:
|
||||
bool failed = false;
|
||||
uint32_t lastRead;
|
||||
|
||||
uint16_t toValue(char *buf);
|
||||
int16_t toI16(char *buf);
|
||||
uint16_t toU16(char* buf);
|
||||
bool validate(char *buf);
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user