mirror of
https://github.com/airgradienthq/arduino.git
synced 2025-07-17 18:52:07 +02:00
Merge branch 'develop' into feature/send-pms-sensor-fw-version-to-ag-cloud
This commit is contained in:
@ -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