Updated build
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* Auto-generated, do not edit. */
|
||||
const char *build_id = "20180218-011554/???";
|
||||
const char *build_timestamp = "2018-02-18T01:15:54Z";
|
||||
const char *build_id = "20180218-182818/???";
|
||||
const char *build_timestamp = "2018-02-18T18:28:18Z";
|
||||
const char *build_version = "1.0";
|
||||
|
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"build_id": "20180218-011554/???",
|
||||
"build_timestamp": "2018-02-18T01:15:54Z",
|
||||
"build_id": "20180218-182818/???",
|
||||
"build_timestamp": "2018-02-18T18:28:18Z",
|
||||
"build_version": "1.0"
|
||||
}
|
@@ -2,5 +2,5 @@
|
||||
"arch": "esp32",
|
||||
"platform": "esp32",
|
||||
"app_name": "LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware",
|
||||
"build_time_ms": 31259
|
||||
"build_time_ms": 26383
|
||||
}
|
@@ -107,9 +107,8 @@
|
||||
"deviceId": "",
|
||||
"temperature": 0.0,
|
||||
"humidity": 0.0,
|
||||
"light": 0,
|
||||
"statuslight": 0,
|
||||
"moisture": 0,
|
||||
"connected": false,
|
||||
"battery_calibration": 2360
|
||||
"connected": false
|
||||
}
|
||||
}
|
@@ -1,4 +1,4 @@
|
||||
/* Auto-generated, do not edit. */
|
||||
const char *mg_build_id = "20180218-011551/???";
|
||||
const char *mg_build_timestamp = "2018-02-18T01:15:51Z";
|
||||
const char *mg_build_version = "2018021801";
|
||||
const char *mg_build_id = "20180218-182818/???";
|
||||
const char *mg_build_timestamp = "2018-02-18T18:28:18Z";
|
||||
const char *mg_build_version = "2018021818";
|
||||
|
@@ -3,8 +3,8 @@
|
||||
#include <stddef.h>
|
||||
#include "mgos_config.h"
|
||||
|
||||
const struct mgos_conf_entry mgos_config_schema_[100] = {
|
||||
{.type = CONF_TYPE_OBJECT, .key = "", .num_desc = 99},
|
||||
const struct mgos_conf_entry mgos_config_schema_[99] = {
|
||||
{.type = CONF_TYPE_OBJECT, .key = "", .num_desc = 98},
|
||||
{.type = CONF_TYPE_OBJECT, .key = "device", .num_desc = 2},
|
||||
{.type = CONF_TYPE_STRING, .key = "id", .offset = offsetof(struct mgos_config, device.id)},
|
||||
{.type = CONF_TYPE_STRING, .key = "password", .offset = offsetof(struct mgos_config, device.password)},
|
||||
@@ -96,14 +96,13 @@ const struct mgos_conf_entry mgos_config_schema_[100] = {
|
||||
{.type = CONF_TYPE_INT, .key = "disable_after", .offset = offsetof(struct mgos_config, wifi.ap.disable_after)},
|
||||
{.type = CONF_TYPE_STRING, .key = "hostname", .offset = offsetof(struct mgos_config, wifi.ap.hostname)},
|
||||
{.type = CONF_TYPE_BOOL, .key = "keep_enabled", .offset = offsetof(struct mgos_config, wifi.ap.keep_enabled)},
|
||||
{.type = CONF_TYPE_OBJECT, .key = "higrow", .num_desc = 7},
|
||||
{.type = CONF_TYPE_OBJECT, .key = "higrow", .num_desc = 6},
|
||||
{.type = CONF_TYPE_STRING, .key = "deviceId", .offset = offsetof(struct mgos_config, higrow.deviceId)},
|
||||
{.type = CONF_TYPE_DOUBLE, .key = "temperature", .offset = offsetof(struct mgos_config, higrow.temperature)},
|
||||
{.type = CONF_TYPE_DOUBLE, .key = "humidity", .offset = offsetof(struct mgos_config, higrow.humidity)},
|
||||
{.type = CONF_TYPE_INT, .key = "light", .offset = offsetof(struct mgos_config, higrow.light)},
|
||||
{.type = CONF_TYPE_INT, .key = "statuslight", .offset = offsetof(struct mgos_config, higrow.statuslight)},
|
||||
{.type = CONF_TYPE_INT, .key = "moisture", .offset = offsetof(struct mgos_config, higrow.moisture)},
|
||||
{.type = CONF_TYPE_BOOL, .key = "connected", .offset = offsetof(struct mgos_config, higrow.connected)},
|
||||
{.type = CONF_TYPE_INT, .key = "battery_calibration", .offset = offsetof(struct mgos_config, higrow.battery_calibration)},
|
||||
};
|
||||
|
||||
const struct mgos_conf_entry *mgos_config_schema() {
|
||||
@@ -399,8 +398,8 @@ double mgos_config_get_higrow_temperature(struct mgos_config *cfg) {
|
||||
double mgos_config_get_higrow_humidity(struct mgos_config *cfg) {
|
||||
return cfg->higrow.humidity;
|
||||
}
|
||||
int mgos_config_get_higrow_light(struct mgos_config *cfg) {
|
||||
return cfg->higrow.light;
|
||||
int mgos_config_get_higrow_statuslight(struct mgos_config *cfg) {
|
||||
return cfg->higrow.statuslight;
|
||||
}
|
||||
int mgos_config_get_higrow_moisture(struct mgos_config *cfg) {
|
||||
return cfg->higrow.moisture;
|
||||
@@ -408,9 +407,6 @@ int mgos_config_get_higrow_moisture(struct mgos_config *cfg) {
|
||||
int mgos_config_get_higrow_connected(struct mgos_config *cfg) {
|
||||
return cfg->higrow.connected;
|
||||
}
|
||||
int mgos_config_get_higrow_battery_calibration(struct mgos_config *cfg) {
|
||||
return cfg->higrow.battery_calibration;
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* Setters {{{ */
|
||||
@@ -657,8 +653,8 @@ void mgos_config_set_higrow_temperature(struct mgos_config *cfg, double val
|
||||
void mgos_config_set_higrow_humidity(struct mgos_config *cfg, double val) {
|
||||
cfg->higrow.humidity = val;
|
||||
}
|
||||
void mgos_config_set_higrow_light(struct mgos_config *cfg, int val) {
|
||||
cfg->higrow.light = val;
|
||||
void mgos_config_set_higrow_statuslight(struct mgos_config *cfg, int val) {
|
||||
cfg->higrow.statuslight = val;
|
||||
}
|
||||
void mgos_config_set_higrow_moisture(struct mgos_config *cfg, int val) {
|
||||
cfg->higrow.moisture = val;
|
||||
@@ -666,7 +662,4 @@ void mgos_config_set_higrow_moisture(struct mgos_config *cfg, int val) {
|
||||
void mgos_config_set_higrow_connected(struct mgos_config *cfg, int val) {
|
||||
cfg->higrow.connected = val;
|
||||
}
|
||||
void mgos_config_set_higrow_battery_calibration(struct mgos_config *cfg, int val) {
|
||||
cfg->higrow.battery_calibration = val;
|
||||
}
|
||||
/* }}} */
|
||||
|
@@ -138,10 +138,9 @@ struct mgos_config_higrow {
|
||||
char *deviceId;
|
||||
double temperature;
|
||||
double humidity;
|
||||
int light;
|
||||
int statuslight;
|
||||
int moisture;
|
||||
int connected;
|
||||
int battery_calibration;
|
||||
};
|
||||
|
||||
struct mgos_config {
|
||||
@@ -252,10 +251,9 @@ const struct mgos_config_higrow *mgos_config_get_higrow(struct mgos_config *cfg)
|
||||
const char *mgos_config_get_higrow_deviceId(struct mgos_config *cfg);
|
||||
double mgos_config_get_higrow_temperature(struct mgos_config *cfg);
|
||||
double mgos_config_get_higrow_humidity(struct mgos_config *cfg);
|
||||
int mgos_config_get_higrow_light(struct mgos_config *cfg);
|
||||
int mgos_config_get_higrow_statuslight(struct mgos_config *cfg);
|
||||
int mgos_config_get_higrow_moisture(struct mgos_config *cfg);
|
||||
int mgos_config_get_higrow_connected(struct mgos_config *cfg);
|
||||
int mgos_config_get_higrow_battery_calibration(struct mgos_config *cfg);
|
||||
|
||||
void mgos_config_set_device_id(struct mgos_config *cfg, const char *val);
|
||||
void mgos_config_set_device_password(struct mgos_config *cfg, const char *val);
|
||||
@@ -338,10 +336,9 @@ void mgos_config_set_wifi_ap_keep_enabled(struct mgos_config *cfg, int v
|
||||
void mgos_config_set_higrow_deviceId(struct mgos_config *cfg, const char *val);
|
||||
void mgos_config_set_higrow_temperature(struct mgos_config *cfg, double val);
|
||||
void mgos_config_set_higrow_humidity(struct mgos_config *cfg, double val);
|
||||
void mgos_config_set_higrow_light(struct mgos_config *cfg, int val);
|
||||
void mgos_config_set_higrow_statuslight(struct mgos_config *cfg, int val);
|
||||
void mgos_config_set_higrow_moisture(struct mgos_config *cfg, int val);
|
||||
void mgos_config_set_higrow_connected(struct mgos_config *cfg, int val);
|
||||
void mgos_config_set_higrow_battery_calibration(struct mgos_config *cfg, int val);
|
||||
/* }}} */
|
||||
|
||||
extern struct mgos_config mgos_sys_config;
|
||||
@@ -441,10 +438,9 @@ static inline const struct mgos_config_higrow *mgos_sys_config_get_higrow(void)
|
||||
static inline const char *mgos_sys_config_get_higrow_deviceId(void) { return mgos_config_get_higrow_deviceId(&mgos_sys_config); }
|
||||
static inline double mgos_sys_config_get_higrow_temperature(void) { return mgos_config_get_higrow_temperature(&mgos_sys_config); }
|
||||
static inline double mgos_sys_config_get_higrow_humidity(void) { return mgos_config_get_higrow_humidity(&mgos_sys_config); }
|
||||
static inline int mgos_sys_config_get_higrow_light(void) { return mgos_config_get_higrow_light(&mgos_sys_config); }
|
||||
static inline int mgos_sys_config_get_higrow_statuslight(void) { return mgos_config_get_higrow_statuslight(&mgos_sys_config); }
|
||||
static inline int mgos_sys_config_get_higrow_moisture(void) { return mgos_config_get_higrow_moisture(&mgos_sys_config); }
|
||||
static inline int mgos_sys_config_get_higrow_connected(void) { return mgos_config_get_higrow_connected(&mgos_sys_config); }
|
||||
static inline int mgos_sys_config_get_higrow_battery_calibration(void) { return mgos_config_get_higrow_battery_calibration(&mgos_sys_config); }
|
||||
|
||||
static inline void mgos_sys_config_set_device_id(const char *val) { mgos_config_set_device_id(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_device_password(const char *val) { mgos_config_set_device_password(&mgos_sys_config, val); }
|
||||
@@ -527,10 +523,9 @@ static inline void mgos_sys_config_set_wifi_ap_keep_enabled(int val) { m
|
||||
static inline void mgos_sys_config_set_higrow_deviceId(const char *val) { mgos_config_set_higrow_deviceId(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_higrow_temperature(double val) { mgos_config_set_higrow_temperature(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_higrow_humidity(double val) { mgos_config_set_higrow_humidity(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_higrow_light(int val) { mgos_config_set_higrow_light(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_higrow_statuslight(int val) { mgos_config_set_higrow_statuslight(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_higrow_moisture(int val) { mgos_config_set_higrow_moisture(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_higrow_connected(int val) { mgos_config_set_higrow_connected(&mgos_sys_config, val); }
|
||||
static inline void mgos_sys_config_set_higrow_battery_calibration(int val) { mgos_config_set_higrow_battery_calibration(&mgos_sys_config, val); }
|
||||
|
||||
|
||||
const struct mgos_conf_entry *mgos_config_schema();
|
||||
|
Binary file not shown.
@@ -107,9 +107,8 @@
|
||||
"deviceId": "",
|
||||
"temperature": 0.0,
|
||||
"humidity": 0.0,
|
||||
"light": 0,
|
||||
"statuslight": 0,
|
||||
"moisture": 0,
|
||||
"connected": false,
|
||||
"battery_calibration": 2360
|
||||
"connected": false
|
||||
}
|
||||
}
|
@@ -90,12 +90,11 @@
|
||||
["wifi.ap.disable_after", "i", {"title": "If > 0, will disable itself after the specified number of seconds"}],
|
||||
["wifi.ap.hostname", "s", {"title": "If not empty, DNS server will resolve given host name to the IP address of AP"}],
|
||||
["wifi.ap.keep_enabled", "b", {"title": "Keep AP enabled when station is on"}],
|
||||
["higrow", "o", {"title": "LilyGo HiGrow ESP32 Plant Sensor App Settings"}],
|
||||
["higrow", "o", {"title": "LilyGo HiGrow ESP32 Plant Sensor v1 App Settings"}],
|
||||
["higrow.deviceId", "s", {"title": "DeviceId"}],
|
||||
["higrow.temperature", "d", {"title": "Temperature"}],
|
||||
["higrow.humidity", "d", {"title": "Humidity"}],
|
||||
["higrow.light", "i", {"title": "Light"}],
|
||||
["higrow.statuslight", "i", {"title": "Light"}],
|
||||
["higrow.moisture", "i", {"title": "Moisture"}],
|
||||
["higrow.connected", "b", {"title": "Connected"}],
|
||||
["higrow.battery_calibration", "i", {"title": "Battery ADC value at 4000mV"}]
|
||||
["higrow.connected", "b", {"title": "Connected"}]
|
||||
]
|
||||
|
@@ -247,7 +247,7 @@
|
||||
- title: Keep AP enabled when station is on
|
||||
- - higrow
|
||||
- o
|
||||
- title: LilyGo HiGrow ESP32 Plant Sensor App Settings
|
||||
- title: LilyGo HiGrow ESP32 Plant Sensor v1 App Settings
|
||||
- - higrow.deviceId
|
||||
- s
|
||||
- ""
|
||||
@@ -260,7 +260,7 @@
|
||||
- d
|
||||
- 0
|
||||
- title: Humidity
|
||||
- - higrow.light
|
||||
- - higrow.statuslight
|
||||
- i
|
||||
- 0
|
||||
- title: Light
|
||||
@@ -272,10 +272,6 @@
|
||||
- b
|
||||
- false
|
||||
- title: Connected
|
||||
- - higrow.battery_calibration
|
||||
- i
|
||||
- 2360
|
||||
- title: Battery ADC value at 4000mV
|
||||
- - wifi.sta.enable
|
||||
- false
|
||||
- - wifi.sta.ssid
|
||||
|
@@ -5,7 +5,7 @@ platform: esp32
|
||||
platforms:
|
||||
- esp32
|
||||
author: Jason Harrell <info@latitude17.io>
|
||||
description: LilyGo HiGrow ESP32 Plant Sensor
|
||||
description: LilyGo HiGrow ESP32 Plant Sensor v1
|
||||
sources:
|
||||
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/deps_init.c
|
||||
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/adc/esp32/src/esp32_adc.c
|
||||
@@ -324,7 +324,7 @@ config_schema:
|
||||
- title: Keep AP enabled when station is on
|
||||
- - higrow
|
||||
- o
|
||||
- title: LilyGo HiGrow ESP32 Plant Sensor App Settings
|
||||
- title: LilyGo HiGrow ESP32 Plant Sensor v1 App Settings
|
||||
- - higrow.deviceId
|
||||
- s
|
||||
- ""
|
||||
@@ -337,7 +337,7 @@ config_schema:
|
||||
- d
|
||||
- 0
|
||||
- title: Humidity
|
||||
- - higrow.light
|
||||
- - higrow.statuslight
|
||||
- i
|
||||
- 0
|
||||
- title: Light
|
||||
@@ -349,10 +349,6 @@ config_schema:
|
||||
- b
|
||||
- false
|
||||
- title: Connected
|
||||
- - higrow.battery_calibration
|
||||
- i
|
||||
- 2360
|
||||
- title: Battery ADC value at 4000mV
|
||||
- - wifi.sta.enable
|
||||
- false
|
||||
- - wifi.sta.ssid
|
||||
|
Reference in New Issue
Block a user