SDS011 code sanitizations
This commit is contained in:
1 parent
417c3c7e69
commit
39f99043d6
11 files changed
+107
-100
No files matched your search
@@ -111,6 +111,11 @@ typedef struct {
|
||||
float gas; // raw gas sensor signal
|
||||
} bmeStatus_t;
|
||||
|
||||
typedef struct {
|
||||
float pm10;
|
||||
float pm25;
|
||||
} sdsStatus_t;
|
||||
|
||||
extern std::set<uint16_t, std::less<uint16_t>, Mallocator<uint16_t>> macs;
|
||||
extern std::array<uint64_t, 0xff>::iterator it;
|
||||
extern std::array<uint64_t, 0xff> beacons;
|
||||
|
||||
+1
-2
@@ -59,8 +59,7 @@ public:
|
||||
void addButton(uint8_t value);
|
||||
void addSensor(uint8_t[]);
|
||||
void addTime(time_t value);
|
||||
void addPM10(float value);
|
||||
void addPM25(float value);
|
||||
void addSDS(sdsStatus_t value);
|
||||
private:
|
||||
void addChars( char* string, int len);
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
#ifndef _SDS011READ_H
|
||||
#define _SDS011READ_H
|
||||
|
||||
#include "globals.h"
|
||||
#include <SDS011.h>
|
||||
|
||||
#define SDCARD_FILE_HEADER_SDS011 ", PM10,PM25"
|
||||
@@ -9,5 +10,6 @@ bool sds011_init();
|
||||
void sds011_loop();
|
||||
void sds011_sleep(void);
|
||||
void sds011_wakeup(void);
|
||||
void sds011_store(sdsStatus_t *sds_store);
|
||||
|
||||
#endif // _SDS011READ_H
|
||||
Reference in new issue
Block a user