Fix: PMS Read Failed

This commit is contained in:
Phat Nguyen
2024-03-14 21:17:43 +07:00
parent d92d312b0c
commit be1a9778e6
13 changed files with 409 additions and 336 deletions

View File

@ -17,8 +17,8 @@ public:
bool begin(HardwareSerial &serial);
#endif
void end(void);
bool readData(void);
void handle(void);
bool isFailed(void);
int getPm01Ae(void);
int getPm25Ae(void);
int getPm10Ae(void);
@ -28,7 +28,7 @@ public:
private:
bool _isBegin = false;
BoardType _boardDef;
PMS pms;
PMSBase pms;
const BoardDef *bsp;
#if defined(ESP8266)
Stream *_debugStream;
@ -36,9 +36,6 @@ private:
#else
HardwareSerial *_serial;
#endif
// Conplug_PMS5003T *pms;
PMS::DATA pmsData;
bool begin(void);
bool isBegin(void);
};