forked from airgradienthq/arduino
Merge branch 'hotfix/configuration-default-after-ota-success-and-new-firmware-has-change-configuration-param' into feature/press-button-for-offline-mode
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -8,30 +8,6 @@
|
|||||||
|
|
||||||
class Configuration : public PrintLog {
|
class Configuration : public PrintLog {
|
||||||
private:
|
private:
|
||||||
struct Config {
|
|
||||||
char model[20];
|
|
||||||
char country[3]; /** Country name has only 2 character, ex: TH = Thailand */
|
|
||||||
char mqttBroker[256]; /** MQTT broker URI */
|
|
||||||
bool inUSAQI; /** If PM standard "ugm3" inUSAQI = false, otherwise is true
|
|
||||||
*/
|
|
||||||
bool inF; /** Temperature unit F */
|
|
||||||
bool postDataToAirGradient; /** If true, monitor will not POST data to
|
|
||||||
airgradient server. Make sure no error
|
|
||||||
message shown on monitor */
|
|
||||||
uint8_t configurationControl; /** If true, configuration from airgradient
|
|
||||||
server will be ignored */
|
|
||||||
bool displayMode; /** true if enable display */
|
|
||||||
uint8_t useRGBLedBar;
|
|
||||||
uint8_t abcDays;
|
|
||||||
uint8_t ledBarBrightness;
|
|
||||||
uint8_t displayBrightness;
|
|
||||||
int tvocLearningOffset;
|
|
||||||
int noxLearningOffset;
|
|
||||||
char temperatureUnit; // 'f' or 'c'
|
|
||||||
|
|
||||||
uint32_t _check;
|
|
||||||
};
|
|
||||||
struct Config config;
|
|
||||||
bool co2CalibrationRequested;
|
bool co2CalibrationRequested;
|
||||||
bool ledBarTestRequested;
|
bool ledBarTestRequested;
|
||||||
bool udpated;
|
bool udpated;
|
||||||
@@ -55,6 +31,7 @@ private:
|
|||||||
String getPMStandardString(bool usaqi);
|
String getPMStandardString(bool usaqi);
|
||||||
String getDisplayModeString(bool dispMode);
|
String getDisplayModeString(bool dispMode);
|
||||||
String getAbcDayString(int value);
|
String getAbcDayString(int value);
|
||||||
|
void toConfig(const char* buf);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
Configuration(Stream &debugLog);
|
Configuration(Stream &debugLog);
|
||||||
|
Reference in New Issue
Block a user