Merge branch 'develop' into feature/send-pms-sensor-fw-version-to-ag-cloud

This commit is contained in:
Phat Nguyen
2024-08-25 20:46:28 +07:00
21 changed files with 279 additions and 116 deletions

View File

@ -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);
};