change locallyControlled to configurationControl and update relate logic

This commit is contained in:
Phat Nguyen
2024-04-01 09:15:10 +07:00
parent 260e904326
commit 3788aa2746
4 changed files with 68 additions and 30 deletions

View File

@ -15,7 +15,7 @@
/**
* @brief RGB LED bar mode for ONE_INDOOR board
*
*
*/
enum UseLedBar {
UseLedBarOff, /** Don't use LED bar */
@ -23,6 +23,12 @@ enum UseLedBar {
UseLedBarCO2, /** Use LED bar for CO2 */
};
enum ConfigurationControl {
Local, /** Allow set configuration from local over HTTP server */
Cloud, /** Allow set configuration from Airgradient webserver */
Both /** Allow set configuration from Local and Cloud */
};
/**
* @brief Class with define all the sensor has supported by Airgradient. Each
* sensor usage must be init before use.