Initial commit

This commit is contained in:
Jason Harrell
2018-02-17 22:47:44 -07:00
commit 235a77d788
57 changed files with 6615 additions and 0 deletions

1
build/gen/build_ctx.txt Normal file
View File

@@ -0,0 +1 @@
build_ctx_913791226

4
build/gen/build_info.c Normal file
View File

@@ -0,0 +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_version = "1.0";

View File

@@ -0,0 +1,5 @@
{
"build_id": "20180218-011554/???",
"build_timestamp": "2018-02-18T01:15:54Z",
"build_version": "1.0"
}

View File

@@ -0,0 +1,6 @@
{
"arch": "esp32",
"platform": "esp32",
"app_name": "LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware",
"build_time_ms": 31259
}

115
build/gen/conf0.json Normal file
View File

@@ -0,0 +1,115 @@
{
"device": {
"id": "HiGrow_??????",
"password": ""
},
"debug": {
"udp_log_addr": "",
"level": 2,
"filter": "",
"stdout_uart": 0,
"stderr_uart": 0,
"factory_reset_gpio": -1,
"mg_mgr_hexdump_file": "",
"mbedtls_level": 0
},
"sys": {
"mount": {
"path": "",
"dev_type": "",
"dev_opts": "",
"fs_type": "",
"fs_opts": ""
},
"tz_spec": "",
"wdt_timeout": 30,
"pref_ota_lib": "",
"esp32_adc_vref": 0
},
"conf_acl": "*",
"bt": {
"enable": true,
"dev_name": "HiGrowBT_",
"adv_enable": true,
"scan_rsp_data_hex": "",
"keep_enabled": false,
"allow_pairing": true,
"max_paired_devices": -1,
"random_address": true,
"gatts": {
"min_sec_level": 0,
"require_pairing": false
},
"config_svc_enable": true
},
"mjs": {
"generate_jsc": true
},
"rpc": {
"enable": true,
"max_frame_size": 4096,
"max_queue_length": 25,
"default_out_channel_idle_close_timeout": 10,
"acl_file": "",
"auth_domain": "",
"auth_file": "",
"ws": {
"enable": true,
"server_address": "",
"reconnect_interval_min": 1,
"reconnect_interval_max": 60,
"ssl_server_name": "",
"ssl_ca_file": "",
"ssl_client_cert_file": ""
},
"uart": {
"uart_no": 0,
"baud_rate": 115200,
"fc_type": 2,
"wait_for_start_frame": true
}
},
"wifi": {
"sta": {
"enable": false,
"ssid": "",
"pass": "",
"user": "",
"anon_identity": "",
"cert": "",
"key": "",
"ca_cert": "",
"ip": "",
"netmask": "",
"gw": "",
"nameserver": "",
"dhcp_hostname": ""
},
"ap": {
"enable": false,
"ssid": "Mongoose_??????",
"pass": "Mongoose",
"hidden": false,
"channel": 6,
"max_connections": 10,
"ip": "192.168.4.1",
"netmask": "255.255.255.0",
"gw": "192.168.4.1",
"dhcp_start": "192.168.4.2",
"dhcp_end": "192.168.4.100",
"trigger_on_gpio": -1,
"disable_after": 0,
"hostname": "",
"keep_enabled": true
}
},
"higrow": {
"deviceId": "",
"temperature": 0.0,
"humidity": 0.0,
"light": 0,
"moisture": 0,
"connected": false,
"battery_calibration": 2360
}
}

105
build/gen/deps_init.c Normal file
View File

@@ -0,0 +1,105 @@
#include <stdbool.h>
#include <stdio.h>
#include "common/cs_dbg.h"
#include "mgos_app.h"
extern bool mgos_adc_init(void);
extern bool mgos_bt_common_init(void);
extern bool mgos_bt_service_config_init(void);
extern bool mgos_ca_bundle_init(void);
extern bool mgos_dht_init(void);
extern bool mgos_mjs_init(void);
extern bool mgos_rpc_common_init(void);
extern bool mgos_rpc_service_config_init(void);
extern bool mgos_rpc_service_fs_init(void);
extern bool mgos_rpc_uart_init(void);
extern bool mgos_wifi_init(void);
static const struct lib_descr {
const char *title;
bool (*init)(void);
} descrs[] = {
// "adc". deps: [ ]
{
.title = "adc",
.init = mgos_adc_init,
},
// "bt_common". deps: [ ]
{
.title = "bt_common",
.init = mgos_bt_common_init,
},
// "bt_service_config". deps: [ "bt-common" ]
{
.title = "bt_service_config",
.init = mgos_bt_service_config_init,
},
// "ca_bundle". deps: [ ]
{
.title = "ca_bundle",
.init = mgos_ca_bundle_init,
},
// "dht". deps: [ ]
{
.title = "dht",
.init = mgos_dht_init,
},
// "mjs". deps: [ ]
{
.title = "mjs",
.init = mgos_mjs_init,
},
// "rpc_common". deps: [ "http-server" ]
{
.title = "rpc_common",
.init = mgos_rpc_common_init,
},
// "rpc_service_config". deps: [ "rpc-common" ]
{
.title = "rpc_service_config",
.init = mgos_rpc_service_config_init,
},
// "rpc_service_fs". deps: [ "rpc-common" ]
{
.title = "rpc_service_fs",
.init = mgos_rpc_service_fs_init,
},
// "rpc_uart". deps: [ "rpc-common" ]
{
.title = "rpc_uart",
.init = mgos_rpc_uart_init,
},
// "wifi". deps: [ ]
{
.title = "wifi",
.init = mgos_wifi_init,
},
};
bool mgos_deps_init(void) {
size_t i;
for (i = 0; i < sizeof(descrs) / sizeof(struct lib_descr); i++) {
LOG(LL_DEBUG, ("init %s...", descrs[i].title));
if (!descrs[i].init()) {
LOG(LL_ERROR, ("%s init failed", descrs[i].title));
return false;
}
}
return true;
}

239
build/gen/ffi_exports.c Normal file
View File

@@ -0,0 +1,239 @@
/* Auto-generated, do not edit. */
/*
* Symbols filtered by the following globs:
*/
#include <stdbool.h>
#include "mgos_dlsym.h"
/* NOTE: signatures are fake */
double ceil(double);
double cos(double);
void esp32_uart_config_set_fifo(int, void *, int, int, int, int);
void esp32_uart_config_set_pins(int, void *, int, int, int, int);
double exp(double);
double fabs(double);
void fclose(void *);
double floor(double);
double fmax(double, double);
double fmin(double, double);
void * fopen(char *, char *);
int fread(char *, int, int, void *);
void free(void *);
void free(void *);
int fwrite(char *, int, int, void *);
int hall_sens_read(void);
double log(double);
void * malloc(int);
void mbuf_remove(void *, int);
int mg_conn_addr_to_str(void *, char *, int, int);
bool mg_rpc_send_errorf(void *, int, char *, char *);
void mg_send(void *, void *, int);
void mg_set_protocol_http_websocket(void *);
double mg_time(void);
int mgos_adc_enable(int);
int mgos_adc_read(int);
void * mgos_bind(char *, void (*)(void *, int, void *, void *), void *);
void mgos_bitbang_write_bits_js(int, int, int, void *, int);
void mgos_clear_timer(int);
void * mgos_conf_find_schema_entry(char *, void *);
double mgos_conf_value_double(void *, void *);
int mgos_conf_value_int(void *, void *);
char * mgos_conf_value_string_nonnull(void *, void *);
int mgos_conf_value_type(void *);
bool mgos_config_apply(char *, bool);
void * mgos_config_schema();
void * mgos_connect(char *, void (*)(void *, int, void *, void *), void *);
void * mgos_connect_http(char *, void (*)(void *, int, void *, void *), void *);
void * mgos_connect_http_ssl(char *, void (*)(void *, int, void *, void *), void *, char *, char *, char *);
void * mgos_connect_ssl(char *, void (*)(void *, int, void *, void *), void *, char *, char *, char *);
int mgos_debug_event_get_len(void *);
void * mgos_debug_event_get_ptr(void *);
void mgos_dht_close(void *);
void * mgos_dht_create(int, int);
float mgos_dht_get_humidity(void *);
float mgos_dht_get_temp(void *);
void mgos_disconnect(void *);
void mgos_esp_deep_sleep_d(double);
bool mgos_event_add_group_handler(int, void(*)(int, void *, void *), void *);
bool mgos_event_add_handler(int, void(*)(int, void *, void *), void *);
bool mgos_event_register_base(int, char *);
int mgos_event_trigger(int, void *);
void * mgos_get_body_ptr(void *);
int mgos_get_free_heap_size();
int mgos_get_heap_size();
int mgos_get_mbuf_len(void *);
void * mgos_get_mbuf_ptr(void *);
int mgos_get_mgstr_len(void *);
void * mgos_get_mgstr_ptr(void *);
void * mgos_get_msg_ptr(void *);
void * mgos_get_recv_mbuf(void *);
int mgos_gpio_disable_int(int);
int mgos_gpio_enable_int(int);
int mgos_gpio_read(int);
int mgos_gpio_set_button_handler(int,int,int,int,void(*)(int, void *), void *);
int mgos_gpio_set_int_handler(int,int,void(*)(int,void *),void *);
int mgos_gpio_set_mode(int,int);
int mgos_gpio_set_pull(int,int);
int mgos_gpio_toggle(int);
void mgos_gpio_write(int,int);
bool mgos_is_inbound(void *);
void mgos_log(char *, int, int, char *);
void * mgos_mjs_get_config();
void * mgos_rpc_add_handler(void *, void (*)(void *, char *, char *, void *), void *);
bool mgos_rpc_call(char *, char *, char *, void (*)(char *, int, char *, void *), void *);
bool mgos_rpc_send_response(void *, char *);
int mgos_set_timer(int,int,void(*)(void *),void *);
int mgos_strftime(char *, int, char *, int);
void mgos_system_restart(int);
void * mgos_uart_config_get_default(int);
void mgos_uart_config_set_basic_params(void *, int, int, int, int);
void mgos_uart_config_set_rx_params(void *, int, int, int);
void mgos_uart_config_set_tx_params(void *, int, int);
int mgos_uart_configure(int, void *);
void mgos_uart_flush(int);
int mgos_uart_is_rx_enabled(int);
int mgos_uart_read(int, void *, int);
int mgos_uart_read_avail(int);
void mgos_uart_set_dispatcher(int, void(*)(int, void *), void *);
void mgos_uart_set_rx_enabled(int, int);
int mgos_uart_write(int, char *, int);
int mgos_uart_write_avail(int);
double mgos_uptime();
void mgos_usleep(int);
void mgos_wdt_feed();
char * mjs_get_bcode_filename_by_offset(void *, int);
int mjs_get_lineno_by_offset(void *, int);
int mjs_get_offset_by_call_frame_num(void *, int);
double mjs_mem_get_int(void *, int, int);
void * mjs_mem_get_ptr(void *, int);
double mjs_mem_get_uint(void *, int, int);
void mjs_mem_set_uint(void *, int, int, int);
void * mjs_mem_to_ptr(int);
double pow(double, double);
int rand();
int remove(char *);
int rename(char *, char *);
double round(double);
double sin(double);
double sqrt(double);
void * strdup(char *);
int temprature_sens_read(void);
const struct mgos_ffi_export ffi_exports[] = {
{"ceil", ceil},
{"cos", cos},
{"esp32_uart_config_set_fifo", esp32_uart_config_set_fifo},
{"esp32_uart_config_set_pins", esp32_uart_config_set_pins},
{"exp", exp},
{"fabs", fabs},
{"fclose", fclose},
{"floor", floor},
{"fmax", fmax},
{"fmin", fmin},
{"fopen", fopen},
{"fread", fread},
{"free", free},
{"free", free},
{"fwrite", fwrite},
{"hall_sens_read", hall_sens_read},
{"log", log},
{"malloc", malloc},
{"mbuf_remove", mbuf_remove},
{"mg_conn_addr_to_str", mg_conn_addr_to_str},
{"mg_rpc_send_errorf", mg_rpc_send_errorf},
{"mg_send", mg_send},
{"mg_set_protocol_http_websocket", mg_set_protocol_http_websocket},
{"mg_time", mg_time},
{"mgos_adc_enable", mgos_adc_enable},
{"mgos_adc_read", mgos_adc_read},
{"mgos_bind", mgos_bind},
{"mgos_bitbang_write_bits_js", mgos_bitbang_write_bits_js},
{"mgos_clear_timer", mgos_clear_timer},
{"mgos_conf_find_schema_entry", mgos_conf_find_schema_entry},
{"mgos_conf_value_double", mgos_conf_value_double},
{"mgos_conf_value_int", mgos_conf_value_int},
{"mgos_conf_value_string_nonnull", mgos_conf_value_string_nonnull},
{"mgos_conf_value_type", mgos_conf_value_type},
{"mgos_config_apply", mgos_config_apply},
{"mgos_config_schema", mgos_config_schema},
{"mgos_connect", mgos_connect},
{"mgos_connect_http", mgos_connect_http},
{"mgos_connect_http_ssl", mgos_connect_http_ssl},
{"mgos_connect_ssl", mgos_connect_ssl},
{"mgos_debug_event_get_len", mgos_debug_event_get_len},
{"mgos_debug_event_get_ptr", mgos_debug_event_get_ptr},
{"mgos_dht_close", mgos_dht_close},
{"mgos_dht_create", mgos_dht_create},
{"mgos_dht_get_humidity", mgos_dht_get_humidity},
{"mgos_dht_get_temp", mgos_dht_get_temp},
{"mgos_disconnect", mgos_disconnect},
{"mgos_esp_deep_sleep_d", mgos_esp_deep_sleep_d},
{"mgos_event_add_group_handler", mgos_event_add_group_handler},
{"mgos_event_add_handler", mgos_event_add_handler},
{"mgos_event_register_base", mgos_event_register_base},
{"mgos_event_trigger", mgos_event_trigger},
{"mgos_get_body_ptr", mgos_get_body_ptr},
{"mgos_get_free_heap_size", mgos_get_free_heap_size},
{"mgos_get_heap_size", mgos_get_heap_size},
{"mgos_get_mbuf_len", mgos_get_mbuf_len},
{"mgos_get_mbuf_ptr", mgos_get_mbuf_ptr},
{"mgos_get_mgstr_len", mgos_get_mgstr_len},
{"mgos_get_mgstr_ptr", mgos_get_mgstr_ptr},
{"mgos_get_msg_ptr", mgos_get_msg_ptr},
{"mgos_get_recv_mbuf", mgos_get_recv_mbuf},
{"mgos_gpio_disable_int", mgos_gpio_disable_int},
{"mgos_gpio_enable_int", mgos_gpio_enable_int},
{"mgos_gpio_read", mgos_gpio_read},
{"mgos_gpio_set_button_handler", mgos_gpio_set_button_handler},
{"mgos_gpio_set_int_handler", mgos_gpio_set_int_handler},
{"mgos_gpio_set_mode", mgos_gpio_set_mode},
{"mgos_gpio_set_pull", mgos_gpio_set_pull},
{"mgos_gpio_toggle", mgos_gpio_toggle},
{"mgos_gpio_write", mgos_gpio_write},
{"mgos_is_inbound", mgos_is_inbound},
{"mgos_log", mgos_log},
{"mgos_mjs_get_config", mgos_mjs_get_config},
{"mgos_rpc_add_handler", mgos_rpc_add_handler},
{"mgos_rpc_call", mgos_rpc_call},
{"mgos_rpc_send_response", mgos_rpc_send_response},
{"mgos_set_timer", mgos_set_timer},
{"mgos_strftime", mgos_strftime},
{"mgos_system_restart", mgos_system_restart},
{"mgos_uart_config_get_default", mgos_uart_config_get_default},
{"mgos_uart_config_set_basic_params", mgos_uart_config_set_basic_params},
{"mgos_uart_config_set_rx_params", mgos_uart_config_set_rx_params},
{"mgos_uart_config_set_tx_params", mgos_uart_config_set_tx_params},
{"mgos_uart_configure", mgos_uart_configure},
{"mgos_uart_flush", mgos_uart_flush},
{"mgos_uart_is_rx_enabled", mgos_uart_is_rx_enabled},
{"mgos_uart_read", mgos_uart_read},
{"mgos_uart_read_avail", mgos_uart_read_avail},
{"mgos_uart_set_dispatcher", mgos_uart_set_dispatcher},
{"mgos_uart_set_rx_enabled", mgos_uart_set_rx_enabled},
{"mgos_uart_write", mgos_uart_write},
{"mgos_uart_write_avail", mgos_uart_write_avail},
{"mgos_uptime", mgos_uptime},
{"mgos_usleep", mgos_usleep},
{"mgos_wdt_feed", mgos_wdt_feed},
{"mjs_get_bcode_filename_by_offset", mjs_get_bcode_filename_by_offset},
{"mjs_get_lineno_by_offset", mjs_get_lineno_by_offset},
{"mjs_get_offset_by_call_frame_num", mjs_get_offset_by_call_frame_num},
{"mjs_mem_get_int", mjs_mem_get_int},
{"mjs_mem_get_ptr", mjs_mem_get_ptr},
{"mjs_mem_get_uint", mjs_mem_get_uint},
{"mjs_mem_set_uint", mjs_mem_set_uint},
{"mjs_mem_to_ptr", mjs_mem_to_ptr},
{"pow", pow},
{"rand", rand},
{"remove", remove},
{"rename", rename},
{"round", round},
{"sin", sin},
{"sqrt", sqrt},
{"strdup", strdup},
{"temprature_sens_read", temprature_sens_read},
};
const int ffi_exports_cnt = 112;

View File

@@ -0,0 +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";

672
build/gen/mgos_config.c Normal file
View File

@@ -0,0 +1,672 @@
/* Generated file - do not edit. */
#include <stddef.h>
#include "mgos_config.h"
const struct mgos_conf_entry mgos_config_schema_[100] = {
{.type = CONF_TYPE_OBJECT, .key = "", .num_desc = 99},
{.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)},
{.type = CONF_TYPE_OBJECT, .key = "debug", .num_desc = 8},
{.type = CONF_TYPE_STRING, .key = "udp_log_addr", .offset = offsetof(struct mgos_config, debug.udp_log_addr)},
{.type = CONF_TYPE_INT, .key = "level", .offset = offsetof(struct mgos_config, debug.level)},
{.type = CONF_TYPE_STRING, .key = "filter", .offset = offsetof(struct mgos_config, debug.filter)},
{.type = CONF_TYPE_INT, .key = "stdout_uart", .offset = offsetof(struct mgos_config, debug.stdout_uart)},
{.type = CONF_TYPE_INT, .key = "stderr_uart", .offset = offsetof(struct mgos_config, debug.stderr_uart)},
{.type = CONF_TYPE_INT, .key = "factory_reset_gpio", .offset = offsetof(struct mgos_config, debug.factory_reset_gpio)},
{.type = CONF_TYPE_STRING, .key = "mg_mgr_hexdump_file", .offset = offsetof(struct mgos_config, debug.mg_mgr_hexdump_file)},
{.type = CONF_TYPE_INT, .key = "mbedtls_level", .offset = offsetof(struct mgos_config, debug.mbedtls_level)},
{.type = CONF_TYPE_OBJECT, .key = "sys", .num_desc = 10},
{.type = CONF_TYPE_OBJECT, .key = "mount", .num_desc = 5},
{.type = CONF_TYPE_STRING, .key = "path", .offset = offsetof(struct mgos_config, sys.mount.path)},
{.type = CONF_TYPE_STRING, .key = "dev_type", .offset = offsetof(struct mgos_config, sys.mount.dev_type)},
{.type = CONF_TYPE_STRING, .key = "dev_opts", .offset = offsetof(struct mgos_config, sys.mount.dev_opts)},
{.type = CONF_TYPE_STRING, .key = "fs_type", .offset = offsetof(struct mgos_config, sys.mount.fs_type)},
{.type = CONF_TYPE_STRING, .key = "fs_opts", .offset = offsetof(struct mgos_config, sys.mount.fs_opts)},
{.type = CONF_TYPE_STRING, .key = "tz_spec", .offset = offsetof(struct mgos_config, sys.tz_spec)},
{.type = CONF_TYPE_INT, .key = "wdt_timeout", .offset = offsetof(struct mgos_config, sys.wdt_timeout)},
{.type = CONF_TYPE_STRING, .key = "pref_ota_lib", .offset = offsetof(struct mgos_config, sys.pref_ota_lib)},
{.type = CONF_TYPE_INT, .key = "esp32_adc_vref", .offset = offsetof(struct mgos_config, sys.esp32_adc_vref)},
{.type = CONF_TYPE_STRING, .key = "conf_acl", .offset = offsetof(struct mgos_config, conf_acl)},
{.type = CONF_TYPE_OBJECT, .key = "bt", .num_desc = 12},
{.type = CONF_TYPE_BOOL, .key = "enable", .offset = offsetof(struct mgos_config, bt.enable)},
{.type = CONF_TYPE_STRING, .key = "dev_name", .offset = offsetof(struct mgos_config, bt.dev_name)},
{.type = CONF_TYPE_BOOL, .key = "adv_enable", .offset = offsetof(struct mgos_config, bt.adv_enable)},
{.type = CONF_TYPE_STRING, .key = "scan_rsp_data_hex", .offset = offsetof(struct mgos_config, bt.scan_rsp_data_hex)},
{.type = CONF_TYPE_BOOL, .key = "keep_enabled", .offset = offsetof(struct mgos_config, bt.keep_enabled)},
{.type = CONF_TYPE_BOOL, .key = "allow_pairing", .offset = offsetof(struct mgos_config, bt.allow_pairing)},
{.type = CONF_TYPE_INT, .key = "max_paired_devices", .offset = offsetof(struct mgos_config, bt.max_paired_devices)},
{.type = CONF_TYPE_BOOL, .key = "random_address", .offset = offsetof(struct mgos_config, bt.random_address)},
{.type = CONF_TYPE_OBJECT, .key = "gatts", .num_desc = 2},
{.type = CONF_TYPE_INT, .key = "min_sec_level", .offset = offsetof(struct mgos_config, bt.gatts.min_sec_level)},
{.type = CONF_TYPE_BOOL, .key = "require_pairing", .offset = offsetof(struct mgos_config, bt.gatts.require_pairing)},
{.type = CONF_TYPE_BOOL, .key = "config_svc_enable", .offset = offsetof(struct mgos_config, bt.config_svc_enable)},
{.type = CONF_TYPE_OBJECT, .key = "mjs", .num_desc = 1},
{.type = CONF_TYPE_BOOL, .key = "generate_jsc", .offset = offsetof(struct mgos_config, mjs.generate_jsc)},
{.type = CONF_TYPE_OBJECT, .key = "rpc", .num_desc = 20},
{.type = CONF_TYPE_BOOL, .key = "enable", .offset = offsetof(struct mgos_config, rpc.enable)},
{.type = CONF_TYPE_INT, .key = "max_frame_size", .offset = offsetof(struct mgos_config, rpc.max_frame_size)},
{.type = CONF_TYPE_INT, .key = "max_queue_length", .offset = offsetof(struct mgos_config, rpc.max_queue_length)},
{.type = CONF_TYPE_INT, .key = "default_out_channel_idle_close_timeout", .offset = offsetof(struct mgos_config, rpc.default_out_channel_idle_close_timeout)},
{.type = CONF_TYPE_STRING, .key = "acl_file", .offset = offsetof(struct mgos_config, rpc.acl_file)},
{.type = CONF_TYPE_STRING, .key = "auth_domain", .offset = offsetof(struct mgos_config, rpc.auth_domain)},
{.type = CONF_TYPE_STRING, .key = "auth_file", .offset = offsetof(struct mgos_config, rpc.auth_file)},
{.type = CONF_TYPE_OBJECT, .key = "ws", .num_desc = 7},
{.type = CONF_TYPE_BOOL, .key = "enable", .offset = offsetof(struct mgos_config, rpc.ws.enable)},
{.type = CONF_TYPE_STRING, .key = "server_address", .offset = offsetof(struct mgos_config, rpc.ws.server_address)},
{.type = CONF_TYPE_INT, .key = "reconnect_interval_min", .offset = offsetof(struct mgos_config, rpc.ws.reconnect_interval_min)},
{.type = CONF_TYPE_INT, .key = "reconnect_interval_max", .offset = offsetof(struct mgos_config, rpc.ws.reconnect_interval_max)},
{.type = CONF_TYPE_STRING, .key = "ssl_server_name", .offset = offsetof(struct mgos_config, rpc.ws.ssl_server_name)},
{.type = CONF_TYPE_STRING, .key = "ssl_ca_file", .offset = offsetof(struct mgos_config, rpc.ws.ssl_ca_file)},
{.type = CONF_TYPE_STRING, .key = "ssl_client_cert_file", .offset = offsetof(struct mgos_config, rpc.ws.ssl_client_cert_file)},
{.type = CONF_TYPE_OBJECT, .key = "uart", .num_desc = 4},
{.type = CONF_TYPE_INT, .key = "uart_no", .offset = offsetof(struct mgos_config, rpc.uart.uart_no)},
{.type = CONF_TYPE_INT, .key = "baud_rate", .offset = offsetof(struct mgos_config, rpc.uart.baud_rate)},
{.type = CONF_TYPE_INT, .key = "fc_type", .offset = offsetof(struct mgos_config, rpc.uart.fc_type)},
{.type = CONF_TYPE_BOOL, .key = "wait_for_start_frame", .offset = offsetof(struct mgos_config, rpc.uart.wait_for_start_frame)},
{.type = CONF_TYPE_OBJECT, .key = "wifi", .num_desc = 30},
{.type = CONF_TYPE_OBJECT, .key = "sta", .num_desc = 13},
{.type = CONF_TYPE_BOOL, .key = "enable", .offset = offsetof(struct mgos_config, wifi.sta.enable)},
{.type = CONF_TYPE_STRING, .key = "ssid", .offset = offsetof(struct mgos_config, wifi.sta.ssid)},
{.type = CONF_TYPE_STRING, .key = "pass", .offset = offsetof(struct mgos_config, wifi.sta.pass)},
{.type = CONF_TYPE_STRING, .key = "user", .offset = offsetof(struct mgos_config, wifi.sta.user)},
{.type = CONF_TYPE_STRING, .key = "anon_identity", .offset = offsetof(struct mgos_config, wifi.sta.anon_identity)},
{.type = CONF_TYPE_STRING, .key = "cert", .offset = offsetof(struct mgos_config, wifi.sta.cert)},
{.type = CONF_TYPE_STRING, .key = "key", .offset = offsetof(struct mgos_config, wifi.sta.key)},
{.type = CONF_TYPE_STRING, .key = "ca_cert", .offset = offsetof(struct mgos_config, wifi.sta.ca_cert)},
{.type = CONF_TYPE_STRING, .key = "ip", .offset = offsetof(struct mgos_config, wifi.sta.ip)},
{.type = CONF_TYPE_STRING, .key = "netmask", .offset = offsetof(struct mgos_config, wifi.sta.netmask)},
{.type = CONF_TYPE_STRING, .key = "gw", .offset = offsetof(struct mgos_config, wifi.sta.gw)},
{.type = CONF_TYPE_STRING, .key = "nameserver", .offset = offsetof(struct mgos_config, wifi.sta.nameserver)},
{.type = CONF_TYPE_STRING, .key = "dhcp_hostname", .offset = offsetof(struct mgos_config, wifi.sta.dhcp_hostname)},
{.type = CONF_TYPE_OBJECT, .key = "ap", .num_desc = 15},
{.type = CONF_TYPE_BOOL, .key = "enable", .offset = offsetof(struct mgos_config, wifi.ap.enable)},
{.type = CONF_TYPE_STRING, .key = "ssid", .offset = offsetof(struct mgos_config, wifi.ap.ssid)},
{.type = CONF_TYPE_STRING, .key = "pass", .offset = offsetof(struct mgos_config, wifi.ap.pass)},
{.type = CONF_TYPE_BOOL, .key = "hidden", .offset = offsetof(struct mgos_config, wifi.ap.hidden)},
{.type = CONF_TYPE_INT, .key = "channel", .offset = offsetof(struct mgos_config, wifi.ap.channel)},
{.type = CONF_TYPE_INT, .key = "max_connections", .offset = offsetof(struct mgos_config, wifi.ap.max_connections)},
{.type = CONF_TYPE_STRING, .key = "ip", .offset = offsetof(struct mgos_config, wifi.ap.ip)},
{.type = CONF_TYPE_STRING, .key = "netmask", .offset = offsetof(struct mgos_config, wifi.ap.netmask)},
{.type = CONF_TYPE_STRING, .key = "gw", .offset = offsetof(struct mgos_config, wifi.ap.gw)},
{.type = CONF_TYPE_STRING, .key = "dhcp_start", .offset = offsetof(struct mgos_config, wifi.ap.dhcp_start)},
{.type = CONF_TYPE_STRING, .key = "dhcp_end", .offset = offsetof(struct mgos_config, wifi.ap.dhcp_end)},
{.type = CONF_TYPE_INT, .key = "trigger_on_gpio", .offset = offsetof(struct mgos_config, wifi.ap.trigger_on_gpio)},
{.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_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 = "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() {
return mgos_config_schema_;
}
/* Global instance */
struct mgos_config mgos_sys_config;
/* Getters {{{ */
const struct mgos_config_device *mgos_config_get_device(struct mgos_config *cfg) {
return &cfg->device;
}
const char *mgos_config_get_device_id(struct mgos_config *cfg) {
return cfg->device.id;
}
const char *mgos_config_get_device_password(struct mgos_config *cfg) {
return cfg->device.password;
}
const struct mgos_config_debug *mgos_config_get_debug(struct mgos_config *cfg) {
return &cfg->debug;
}
const char *mgos_config_get_debug_udp_log_addr(struct mgos_config *cfg) {
return cfg->debug.udp_log_addr;
}
int mgos_config_get_debug_level(struct mgos_config *cfg) {
return cfg->debug.level;
}
const char *mgos_config_get_debug_filter(struct mgos_config *cfg) {
return cfg->debug.filter;
}
int mgos_config_get_debug_stdout_uart(struct mgos_config *cfg) {
return cfg->debug.stdout_uart;
}
int mgos_config_get_debug_stderr_uart(struct mgos_config *cfg) {
return cfg->debug.stderr_uart;
}
int mgos_config_get_debug_factory_reset_gpio(struct mgos_config *cfg) {
return cfg->debug.factory_reset_gpio;
}
const char *mgos_config_get_debug_mg_mgr_hexdump_file(struct mgos_config *cfg) {
return cfg->debug.mg_mgr_hexdump_file;
}
int mgos_config_get_debug_mbedtls_level(struct mgos_config *cfg) {
return cfg->debug.mbedtls_level;
}
const struct mgos_config_sys *mgos_config_get_sys(struct mgos_config *cfg) {
return &cfg->sys;
}
const struct mgos_config_sys_mount *mgos_config_get_sys_mount(struct mgos_config *cfg) {
return &cfg->sys.mount;
}
const char *mgos_config_get_sys_mount_path(struct mgos_config *cfg) {
return cfg->sys.mount.path;
}
const char *mgos_config_get_sys_mount_dev_type(struct mgos_config *cfg) {
return cfg->sys.mount.dev_type;
}
const char *mgos_config_get_sys_mount_dev_opts(struct mgos_config *cfg) {
return cfg->sys.mount.dev_opts;
}
const char *mgos_config_get_sys_mount_fs_type(struct mgos_config *cfg) {
return cfg->sys.mount.fs_type;
}
const char *mgos_config_get_sys_mount_fs_opts(struct mgos_config *cfg) {
return cfg->sys.mount.fs_opts;
}
const char *mgos_config_get_sys_tz_spec(struct mgos_config *cfg) {
return cfg->sys.tz_spec;
}
int mgos_config_get_sys_wdt_timeout(struct mgos_config *cfg) {
return cfg->sys.wdt_timeout;
}
const char *mgos_config_get_sys_pref_ota_lib(struct mgos_config *cfg) {
return cfg->sys.pref_ota_lib;
}
int mgos_config_get_sys_esp32_adc_vref(struct mgos_config *cfg) {
return cfg->sys.esp32_adc_vref;
}
const char *mgos_config_get_conf_acl(struct mgos_config *cfg) {
return cfg->conf_acl;
}
const struct mgos_config_bt *mgos_config_get_bt(struct mgos_config *cfg) {
return &cfg->bt;
}
int mgos_config_get_bt_enable(struct mgos_config *cfg) {
return cfg->bt.enable;
}
const char *mgos_config_get_bt_dev_name(struct mgos_config *cfg) {
return cfg->bt.dev_name;
}
int mgos_config_get_bt_adv_enable(struct mgos_config *cfg) {
return cfg->bt.adv_enable;
}
const char *mgos_config_get_bt_scan_rsp_data_hex(struct mgos_config *cfg) {
return cfg->bt.scan_rsp_data_hex;
}
int mgos_config_get_bt_keep_enabled(struct mgos_config *cfg) {
return cfg->bt.keep_enabled;
}
int mgos_config_get_bt_allow_pairing(struct mgos_config *cfg) {
return cfg->bt.allow_pairing;
}
int mgos_config_get_bt_max_paired_devices(struct mgos_config *cfg) {
return cfg->bt.max_paired_devices;
}
int mgos_config_get_bt_random_address(struct mgos_config *cfg) {
return cfg->bt.random_address;
}
const struct mgos_config_bt_gatts *mgos_config_get_bt_gatts(struct mgos_config *cfg) {
return &cfg->bt.gatts;
}
int mgos_config_get_bt_gatts_min_sec_level(struct mgos_config *cfg) {
return cfg->bt.gatts.min_sec_level;
}
int mgos_config_get_bt_gatts_require_pairing(struct mgos_config *cfg) {
return cfg->bt.gatts.require_pairing;
}
int mgos_config_get_bt_config_svc_enable(struct mgos_config *cfg) {
return cfg->bt.config_svc_enable;
}
const struct mgos_config_mjs *mgos_config_get_mjs(struct mgos_config *cfg) {
return &cfg->mjs;
}
int mgos_config_get_mjs_generate_jsc(struct mgos_config *cfg) {
return cfg->mjs.generate_jsc;
}
const struct mgos_config_rpc *mgos_config_get_rpc(struct mgos_config *cfg) {
return &cfg->rpc;
}
int mgos_config_get_rpc_enable(struct mgos_config *cfg) {
return cfg->rpc.enable;
}
int mgos_config_get_rpc_max_frame_size(struct mgos_config *cfg) {
return cfg->rpc.max_frame_size;
}
int mgos_config_get_rpc_max_queue_length(struct mgos_config *cfg) {
return cfg->rpc.max_queue_length;
}
int mgos_config_get_rpc_default_out_channel_idle_close_timeout(struct mgos_config *cfg) {
return cfg->rpc.default_out_channel_idle_close_timeout;
}
const char *mgos_config_get_rpc_acl_file(struct mgos_config *cfg) {
return cfg->rpc.acl_file;
}
const char *mgos_config_get_rpc_auth_domain(struct mgos_config *cfg) {
return cfg->rpc.auth_domain;
}
const char *mgos_config_get_rpc_auth_file(struct mgos_config *cfg) {
return cfg->rpc.auth_file;
}
const struct mgos_config_rpc_ws *mgos_config_get_rpc_ws(struct mgos_config *cfg) {
return &cfg->rpc.ws;
}
int mgos_config_get_rpc_ws_enable(struct mgos_config *cfg) {
return cfg->rpc.ws.enable;
}
const char *mgos_config_get_rpc_ws_server_address(struct mgos_config *cfg) {
return cfg->rpc.ws.server_address;
}
int mgos_config_get_rpc_ws_reconnect_interval_min(struct mgos_config *cfg) {
return cfg->rpc.ws.reconnect_interval_min;
}
int mgos_config_get_rpc_ws_reconnect_interval_max(struct mgos_config *cfg) {
return cfg->rpc.ws.reconnect_interval_max;
}
const char *mgos_config_get_rpc_ws_ssl_server_name(struct mgos_config *cfg) {
return cfg->rpc.ws.ssl_server_name;
}
const char *mgos_config_get_rpc_ws_ssl_ca_file(struct mgos_config *cfg) {
return cfg->rpc.ws.ssl_ca_file;
}
const char *mgos_config_get_rpc_ws_ssl_client_cert_file(struct mgos_config *cfg) {
return cfg->rpc.ws.ssl_client_cert_file;
}
const struct mgos_config_rpc_uart *mgos_config_get_rpc_uart(struct mgos_config *cfg) {
return &cfg->rpc.uart;
}
int mgos_config_get_rpc_uart_uart_no(struct mgos_config *cfg) {
return cfg->rpc.uart.uart_no;
}
int mgos_config_get_rpc_uart_baud_rate(struct mgos_config *cfg) {
return cfg->rpc.uart.baud_rate;
}
int mgos_config_get_rpc_uart_fc_type(struct mgos_config *cfg) {
return cfg->rpc.uart.fc_type;
}
int mgos_config_get_rpc_uart_wait_for_start_frame(struct mgos_config *cfg) {
return cfg->rpc.uart.wait_for_start_frame;
}
const struct mgos_config_wifi *mgos_config_get_wifi(struct mgos_config *cfg) {
return &cfg->wifi;
}
const struct mgos_config_wifi_sta *mgos_config_get_wifi_sta(struct mgos_config *cfg) {
return &cfg->wifi.sta;
}
int mgos_config_get_wifi_sta_enable(struct mgos_config *cfg) {
return cfg->wifi.sta.enable;
}
const char *mgos_config_get_wifi_sta_ssid(struct mgos_config *cfg) {
return cfg->wifi.sta.ssid;
}
const char *mgos_config_get_wifi_sta_pass(struct mgos_config *cfg) {
return cfg->wifi.sta.pass;
}
const char *mgos_config_get_wifi_sta_user(struct mgos_config *cfg) {
return cfg->wifi.sta.user;
}
const char *mgos_config_get_wifi_sta_anon_identity(struct mgos_config *cfg) {
return cfg->wifi.sta.anon_identity;
}
const char *mgos_config_get_wifi_sta_cert(struct mgos_config *cfg) {
return cfg->wifi.sta.cert;
}
const char *mgos_config_get_wifi_sta_key(struct mgos_config *cfg) {
return cfg->wifi.sta.key;
}
const char *mgos_config_get_wifi_sta_ca_cert(struct mgos_config *cfg) {
return cfg->wifi.sta.ca_cert;
}
const char *mgos_config_get_wifi_sta_ip(struct mgos_config *cfg) {
return cfg->wifi.sta.ip;
}
const char *mgos_config_get_wifi_sta_netmask(struct mgos_config *cfg) {
return cfg->wifi.sta.netmask;
}
const char *mgos_config_get_wifi_sta_gw(struct mgos_config *cfg) {
return cfg->wifi.sta.gw;
}
const char *mgos_config_get_wifi_sta_nameserver(struct mgos_config *cfg) {
return cfg->wifi.sta.nameserver;
}
const char *mgos_config_get_wifi_sta_dhcp_hostname(struct mgos_config *cfg) {
return cfg->wifi.sta.dhcp_hostname;
}
const struct mgos_config_wifi_ap *mgos_config_get_wifi_ap(struct mgos_config *cfg) {
return &cfg->wifi.ap;
}
int mgos_config_get_wifi_ap_enable(struct mgos_config *cfg) {
return cfg->wifi.ap.enable;
}
const char *mgos_config_get_wifi_ap_ssid(struct mgos_config *cfg) {
return cfg->wifi.ap.ssid;
}
const char *mgos_config_get_wifi_ap_pass(struct mgos_config *cfg) {
return cfg->wifi.ap.pass;
}
int mgos_config_get_wifi_ap_hidden(struct mgos_config *cfg) {
return cfg->wifi.ap.hidden;
}
int mgos_config_get_wifi_ap_channel(struct mgos_config *cfg) {
return cfg->wifi.ap.channel;
}
int mgos_config_get_wifi_ap_max_connections(struct mgos_config *cfg) {
return cfg->wifi.ap.max_connections;
}
const char *mgos_config_get_wifi_ap_ip(struct mgos_config *cfg) {
return cfg->wifi.ap.ip;
}
const char *mgos_config_get_wifi_ap_netmask(struct mgos_config *cfg) {
return cfg->wifi.ap.netmask;
}
const char *mgos_config_get_wifi_ap_gw(struct mgos_config *cfg) {
return cfg->wifi.ap.gw;
}
const char *mgos_config_get_wifi_ap_dhcp_start(struct mgos_config *cfg) {
return cfg->wifi.ap.dhcp_start;
}
const char *mgos_config_get_wifi_ap_dhcp_end(struct mgos_config *cfg) {
return cfg->wifi.ap.dhcp_end;
}
int mgos_config_get_wifi_ap_trigger_on_gpio(struct mgos_config *cfg) {
return cfg->wifi.ap.trigger_on_gpio;
}
int mgos_config_get_wifi_ap_disable_after(struct mgos_config *cfg) {
return cfg->wifi.ap.disable_after;
}
const char *mgos_config_get_wifi_ap_hostname(struct mgos_config *cfg) {
return cfg->wifi.ap.hostname;
}
int mgos_config_get_wifi_ap_keep_enabled(struct mgos_config *cfg) {
return cfg->wifi.ap.keep_enabled;
}
const struct mgos_config_higrow *mgos_config_get_higrow(struct mgos_config *cfg) {
return &cfg->higrow;
}
const char *mgos_config_get_higrow_deviceId(struct mgos_config *cfg) {
return cfg->higrow.deviceId;
}
double mgos_config_get_higrow_temperature(struct mgos_config *cfg) {
return cfg->higrow.temperature;
}
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_moisture(struct mgos_config *cfg) {
return cfg->higrow.moisture;
}
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 {{{ */
void mgos_config_set_device_id(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->device.id, val);
}
void mgos_config_set_device_password(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->device.password, val);
}
void mgos_config_set_debug_udp_log_addr(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->debug.udp_log_addr, val);
}
void mgos_config_set_debug_level(struct mgos_config *cfg, int val) {
cfg->debug.level = val;
}
void mgos_config_set_debug_filter(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->debug.filter, val);
}
void mgos_config_set_debug_stdout_uart(struct mgos_config *cfg, int val) {
cfg->debug.stdout_uart = val;
}
void mgos_config_set_debug_stderr_uart(struct mgos_config *cfg, int val) {
cfg->debug.stderr_uart = val;
}
void mgos_config_set_debug_factory_reset_gpio(struct mgos_config *cfg, int val) {
cfg->debug.factory_reset_gpio = val;
}
void mgos_config_set_debug_mg_mgr_hexdump_file(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->debug.mg_mgr_hexdump_file, val);
}
void mgos_config_set_debug_mbedtls_level(struct mgos_config *cfg, int val) {
cfg->debug.mbedtls_level = val;
}
void mgos_config_set_sys_mount_path(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->sys.mount.path, val);
}
void mgos_config_set_sys_mount_dev_type(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->sys.mount.dev_type, val);
}
void mgos_config_set_sys_mount_dev_opts(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->sys.mount.dev_opts, val);
}
void mgos_config_set_sys_mount_fs_type(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->sys.mount.fs_type, val);
}
void mgos_config_set_sys_mount_fs_opts(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->sys.mount.fs_opts, val);
}
void mgos_config_set_sys_tz_spec(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->sys.tz_spec, val);
}
void mgos_config_set_sys_wdt_timeout(struct mgos_config *cfg, int val) {
cfg->sys.wdt_timeout = val;
}
void mgos_config_set_sys_pref_ota_lib(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->sys.pref_ota_lib, val);
}
void mgos_config_set_sys_esp32_adc_vref(struct mgos_config *cfg, int val) {
cfg->sys.esp32_adc_vref = val;
}
void mgos_config_set_conf_acl(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->conf_acl, val);
}
void mgos_config_set_bt_enable(struct mgos_config *cfg, int val) {
cfg->bt.enable = val;
}
void mgos_config_set_bt_dev_name(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->bt.dev_name, val);
}
void mgos_config_set_bt_adv_enable(struct mgos_config *cfg, int val) {
cfg->bt.adv_enable = val;
}
void mgos_config_set_bt_scan_rsp_data_hex(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->bt.scan_rsp_data_hex, val);
}
void mgos_config_set_bt_keep_enabled(struct mgos_config *cfg, int val) {
cfg->bt.keep_enabled = val;
}
void mgos_config_set_bt_allow_pairing(struct mgos_config *cfg, int val) {
cfg->bt.allow_pairing = val;
}
void mgos_config_set_bt_max_paired_devices(struct mgos_config *cfg, int val) {
cfg->bt.max_paired_devices = val;
}
void mgos_config_set_bt_random_address(struct mgos_config *cfg, int val) {
cfg->bt.random_address = val;
}
void mgos_config_set_bt_gatts_min_sec_level(struct mgos_config *cfg, int val) {
cfg->bt.gatts.min_sec_level = val;
}
void mgos_config_set_bt_gatts_require_pairing(struct mgos_config *cfg, int val) {
cfg->bt.gatts.require_pairing = val;
}
void mgos_config_set_bt_config_svc_enable(struct mgos_config *cfg, int val) {
cfg->bt.config_svc_enable = val;
}
void mgos_config_set_mjs_generate_jsc(struct mgos_config *cfg, int val) {
cfg->mjs.generate_jsc = val;
}
void mgos_config_set_rpc_enable(struct mgos_config *cfg, int val) {
cfg->rpc.enable = val;
}
void mgos_config_set_rpc_max_frame_size(struct mgos_config *cfg, int val) {
cfg->rpc.max_frame_size = val;
}
void mgos_config_set_rpc_max_queue_length(struct mgos_config *cfg, int val) {
cfg->rpc.max_queue_length = val;
}
void mgos_config_set_rpc_default_out_channel_idle_close_timeout(struct mgos_config *cfg, int val) {
cfg->rpc.default_out_channel_idle_close_timeout = val;
}
void mgos_config_set_rpc_acl_file(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->rpc.acl_file, val);
}
void mgos_config_set_rpc_auth_domain(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->rpc.auth_domain, val);
}
void mgos_config_set_rpc_auth_file(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->rpc.auth_file, val);
}
void mgos_config_set_rpc_ws_enable(struct mgos_config *cfg, int val) {
cfg->rpc.ws.enable = val;
}
void mgos_config_set_rpc_ws_server_address(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->rpc.ws.server_address, val);
}
void mgos_config_set_rpc_ws_reconnect_interval_min(struct mgos_config *cfg, int val) {
cfg->rpc.ws.reconnect_interval_min = val;
}
void mgos_config_set_rpc_ws_reconnect_interval_max(struct mgos_config *cfg, int val) {
cfg->rpc.ws.reconnect_interval_max = val;
}
void mgos_config_set_rpc_ws_ssl_server_name(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->rpc.ws.ssl_server_name, val);
}
void mgos_config_set_rpc_ws_ssl_ca_file(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->rpc.ws.ssl_ca_file, val);
}
void mgos_config_set_rpc_ws_ssl_client_cert_file(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->rpc.ws.ssl_client_cert_file, val);
}
void mgos_config_set_rpc_uart_uart_no(struct mgos_config *cfg, int val) {
cfg->rpc.uart.uart_no = val;
}
void mgos_config_set_rpc_uart_baud_rate(struct mgos_config *cfg, int val) {
cfg->rpc.uart.baud_rate = val;
}
void mgos_config_set_rpc_uart_fc_type(struct mgos_config *cfg, int val) {
cfg->rpc.uart.fc_type = val;
}
void mgos_config_set_rpc_uart_wait_for_start_frame(struct mgos_config *cfg, int val) {
cfg->rpc.uart.wait_for_start_frame = val;
}
void mgos_config_set_wifi_sta_enable(struct mgos_config *cfg, int val) {
cfg->wifi.sta.enable = val;
}
void mgos_config_set_wifi_sta_ssid(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.ssid, val);
}
void mgos_config_set_wifi_sta_pass(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.pass, val);
}
void mgos_config_set_wifi_sta_user(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.user, val);
}
void mgos_config_set_wifi_sta_anon_identity(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.anon_identity, val);
}
void mgos_config_set_wifi_sta_cert(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.cert, val);
}
void mgos_config_set_wifi_sta_key(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.key, val);
}
void mgos_config_set_wifi_sta_ca_cert(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.ca_cert, val);
}
void mgos_config_set_wifi_sta_ip(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.ip, val);
}
void mgos_config_set_wifi_sta_netmask(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.netmask, val);
}
void mgos_config_set_wifi_sta_gw(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.gw, val);
}
void mgos_config_set_wifi_sta_nameserver(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.nameserver, val);
}
void mgos_config_set_wifi_sta_dhcp_hostname(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.sta.dhcp_hostname, val);
}
void mgos_config_set_wifi_ap_enable(struct mgos_config *cfg, int val) {
cfg->wifi.ap.enable = val;
}
void mgos_config_set_wifi_ap_ssid(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.ssid, val);
}
void mgos_config_set_wifi_ap_pass(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.pass, val);
}
void mgos_config_set_wifi_ap_hidden(struct mgos_config *cfg, int val) {
cfg->wifi.ap.hidden = val;
}
void mgos_config_set_wifi_ap_channel(struct mgos_config *cfg, int val) {
cfg->wifi.ap.channel = val;
}
void mgos_config_set_wifi_ap_max_connections(struct mgos_config *cfg, int val) {
cfg->wifi.ap.max_connections = val;
}
void mgos_config_set_wifi_ap_ip(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.ip, val);
}
void mgos_config_set_wifi_ap_netmask(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.netmask, val);
}
void mgos_config_set_wifi_ap_gw(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.gw, val);
}
void mgos_config_set_wifi_ap_dhcp_start(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.dhcp_start, val);
}
void mgos_config_set_wifi_ap_dhcp_end(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.dhcp_end, val);
}
void mgos_config_set_wifi_ap_trigger_on_gpio(struct mgos_config *cfg, int val) {
cfg->wifi.ap.trigger_on_gpio = val;
}
void mgos_config_set_wifi_ap_disable_after(struct mgos_config *cfg, int val) {
cfg->wifi.ap.disable_after = val;
}
void mgos_config_set_wifi_ap_hostname(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->wifi.ap.hostname, val);
}
void mgos_config_set_wifi_ap_keep_enabled(struct mgos_config *cfg, int val) {
cfg->wifi.ap.keep_enabled = val;
}
void mgos_config_set_higrow_deviceId(struct mgos_config *cfg, const char *val) {
mgos_conf_set_str(&cfg->higrow.deviceId, val);
}
void mgos_config_set_higrow_temperature(struct mgos_config *cfg, double val) {
cfg->higrow.temperature = 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_moisture(struct mgos_config *cfg, int val) {
cfg->higrow.moisture = 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;
}
/* }}} */

175
build/gen/mgos_config.d Normal file
View File

@@ -0,0 +1,175 @@
/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/mgos_config.o: \
/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/mgos_config.c \
/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/mgos_config.h \
/mongoose-os/fw/include/mgos_config_util.h /mongoose-os/common/mbuf.h \
/opt/Espressif/esp-idf/components/newlib/include/stdlib.h \
/opt/Espressif/esp-idf/components/newlib/include/machine/ieeefp.h \
/opt/Espressif/esp-idf/components/newlib/include/_ansi.h \
/opt/Espressif/esp-idf/components/newlib/include/newlib.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/config.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/features.h \
/opt/Espressif/esp-idf/components/esp32/include/xtensa/config/core-isa.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/reent.h \
/opt/Espressif/esp-idf/components/newlib/include/_ansi.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/_types.h \
/opt/Espressif/esp-idf/components/newlib/include/machine/_types.h \
/opt/Espressif/esp-idf/components/newlib/include/machine/_default_types.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/lock.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/cdefs.h \
/opt/Espressif/esp-idf/components/newlib/include/machine/stdlib.h \
/opt/Espressif/esp-idf/components/newlib/include/alloca.h \
/mongoose-os/common/platform.h \
/mongoose-os/common/platforms/platform_unix.h \
/mongoose-os/common/platforms/platform_windows.h \
/mongoose-os/common/platforms/platform_esp32.h \
/opt/Espressif/esp-idf/components/newlib/platform_include/assert.h \
/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/objs/include/sdkconfig.h \
/opt/Espressif/esp-idf/components/newlib/include/assert.h \
/opt/Espressif/esp-idf/components/newlib/include/ctype.h \
/opt/Espressif/esp-idf/components/newlib/include/dirent.h \
/opt/Espressif/esp-idf/components/vfs/include/sys/dirent.h \
/opt/Espressif/esp-idf/components/newlib/include/stdint.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/_intsup.h \
/opt/Espressif/esp-idf/components/newlib/include/fcntl.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/fcntl.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/_default_fcntl.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/types.h \
/opt/Espressif/esp-idf/components/newlib/include/machine/types.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/sched.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/stat.h \
/opt/Espressif/esp-idf/components/newlib/include/time.h \
/opt/Espressif/esp-idf/components/newlib/include/machine/time.h \
/opt/Espressif/esp-idf/components/newlib/include/inttypes.h \
/opt/Espressif/esp-idf/components/newlib/include/machine/endian.h \
/opt/Espressif/esp-idf/components/newlib/include/string.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/string.h \
/opt/Espressif/esp-idf/components/newlib/include/sys/time.h \
/mongoose-os/common/platforms/platform_esp8266.h \
/mongoose-os/common/platforms/platform_cc3100.h \
/mongoose-os/common/platforms/platform_cc3200.h \
/mongoose-os/common/platforms/platform_cc3220.h \
/mongoose-os/common/platforms/platform_mbed.h \
/mongoose-os/common/platforms/platform_nrf51.h \
/mongoose-os/common/platforms/platform_nrf52.h \
/mongoose-os/common/platforms/platform_wince.h \
/mongoose-os/common/platforms/platform_nxp_lpc.h \
/mongoose-os/common/platforms/platform_nxp_kinetis.h \
/mongoose-os/common/platforms/platform_pic32.h \
/mongoose-os/common/platforms/platform_stm32.h \
/mongoose-os/common/mg_str.h
/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/mgos_config.h:
/mongoose-os/fw/include/mgos_config_util.h:
/mongoose-os/common/mbuf.h:
/opt/Espressif/esp-idf/components/newlib/include/stdlib.h:
/opt/Espressif/esp-idf/components/newlib/include/machine/ieeefp.h:
/opt/Espressif/esp-idf/components/newlib/include/_ansi.h:
/opt/Espressif/esp-idf/components/newlib/include/newlib.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/config.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/features.h:
/opt/Espressif/esp-idf/components/esp32/include/xtensa/config/core-isa.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/reent.h:
/opt/Espressif/esp-idf/components/newlib/include/_ansi.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/_types.h:
/opt/Espressif/esp-idf/components/newlib/include/machine/_types.h:
/opt/Espressif/esp-idf/components/newlib/include/machine/_default_types.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/lock.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/cdefs.h:
/opt/Espressif/esp-idf/components/newlib/include/machine/stdlib.h:
/opt/Espressif/esp-idf/components/newlib/include/alloca.h:
/mongoose-os/common/platform.h:
/mongoose-os/common/platforms/platform_unix.h:
/mongoose-os/common/platforms/platform_windows.h:
/mongoose-os/common/platforms/platform_esp32.h:
/opt/Espressif/esp-idf/components/newlib/platform_include/assert.h:
/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/objs/include/sdkconfig.h:
/opt/Espressif/esp-idf/components/newlib/include/assert.h:
/opt/Espressif/esp-idf/components/newlib/include/ctype.h:
/opt/Espressif/esp-idf/components/newlib/include/dirent.h:
/opt/Espressif/esp-idf/components/vfs/include/sys/dirent.h:
/opt/Espressif/esp-idf/components/newlib/include/stdint.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/_intsup.h:
/opt/Espressif/esp-idf/components/newlib/include/fcntl.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/fcntl.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/_default_fcntl.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/types.h:
/opt/Espressif/esp-idf/components/newlib/include/machine/types.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/sched.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/stat.h:
/opt/Espressif/esp-idf/components/newlib/include/time.h:
/opt/Espressif/esp-idf/components/newlib/include/machine/time.h:
/opt/Espressif/esp-idf/components/newlib/include/inttypes.h:
/opt/Espressif/esp-idf/components/newlib/include/machine/endian.h:
/opt/Espressif/esp-idf/components/newlib/include/string.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/string.h:
/opt/Espressif/esp-idf/components/newlib/include/sys/time.h:
/mongoose-os/common/platforms/platform_esp8266.h:
/mongoose-os/common/platforms/platform_cc3100.h:
/mongoose-os/common/platforms/platform_cc3200.h:
/mongoose-os/common/platforms/platform_cc3220.h:
/mongoose-os/common/platforms/platform_mbed.h:
/mongoose-os/common/platforms/platform_nrf51.h:
/mongoose-os/common/platforms/platform_nrf52.h:
/mongoose-os/common/platforms/platform_wince.h:
/mongoose-os/common/platforms/platform_nxp_lpc.h:
/mongoose-os/common/platforms/platform_nxp_kinetis.h:
/mongoose-os/common/platforms/platform_pic32.h:
/mongoose-os/common/platforms/platform_stm32.h:
/mongoose-os/common/mg_str.h:

542
build/gen/mgos_config.h Normal file
View File

@@ -0,0 +1,542 @@
/*
* Generated file - do not edit.
* Command: /mongoose-os/fw/tools/gen_sys_config.py --c_name=mgos_config --c_global_name=mgos_sys_config --dest_dir=/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/ /mongoose-os/fw/src/mgos_debug_udp_config.yaml /mongoose-os/fw/src/mgos_sys_config.yaml /mongoose-os/fw/platforms/esp32/src/esp32_sys_config.yaml /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/mos_conf_schema.yml
*/
#ifndef MGOS_CONFIG_H_
#define MGOS_CONFIG_H_
#include "mgos_config_util.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
struct mgos_config_device {
char *id;
char *password;
};
struct mgos_config_debug {
char *udp_log_addr;
int level;
char *filter;
int stdout_uart;
int stderr_uart;
int factory_reset_gpio;
char *mg_mgr_hexdump_file;
int mbedtls_level;
};
struct mgos_config_sys_mount {
char *path;
char *dev_type;
char *dev_opts;
char *fs_type;
char *fs_opts;
};
struct mgos_config_sys {
struct mgos_config_sys_mount mount;
char *tz_spec;
int wdt_timeout;
char *pref_ota_lib;
int esp32_adc_vref;
};
struct mgos_config_bt_gatts {
int min_sec_level;
int require_pairing;
};
struct mgos_config_bt {
int enable;
char *dev_name;
int adv_enable;
char *scan_rsp_data_hex;
int keep_enabled;
int allow_pairing;
int max_paired_devices;
int random_address;
struct mgos_config_bt_gatts gatts;
int config_svc_enable;
};
struct mgos_config_mjs {
int generate_jsc;
};
struct mgos_config_rpc_ws {
int enable;
char *server_address;
int reconnect_interval_min;
int reconnect_interval_max;
char *ssl_server_name;
char *ssl_ca_file;
char *ssl_client_cert_file;
};
struct mgos_config_rpc_uart {
int uart_no;
int baud_rate;
int fc_type;
int wait_for_start_frame;
};
struct mgos_config_rpc {
int enable;
int max_frame_size;
int max_queue_length;
int default_out_channel_idle_close_timeout;
char *acl_file;
char *auth_domain;
char *auth_file;
struct mgos_config_rpc_ws ws;
struct mgos_config_rpc_uart uart;
};
struct mgos_config_wifi_sta {
int enable;
char *ssid;
char *pass;
char *user;
char *anon_identity;
char *cert;
char *key;
char *ca_cert;
char *ip;
char *netmask;
char *gw;
char *nameserver;
char *dhcp_hostname;
};
struct mgos_config_wifi_ap {
int enable;
char *ssid;
char *pass;
int hidden;
int channel;
int max_connections;
char *ip;
char *netmask;
char *gw;
char *dhcp_start;
char *dhcp_end;
int trigger_on_gpio;
int disable_after;
char *hostname;
int keep_enabled;
};
struct mgos_config_wifi {
struct mgos_config_wifi_sta sta;
struct mgos_config_wifi_ap ap;
};
struct mgos_config_higrow {
char *deviceId;
double temperature;
double humidity;
int light;
int moisture;
int connected;
int battery_calibration;
};
struct mgos_config {
struct mgos_config_device device;
struct mgos_config_debug debug;
struct mgos_config_sys sys;
char *conf_acl;
struct mgos_config_bt bt;
struct mgos_config_mjs mjs;
struct mgos_config_rpc rpc;
struct mgos_config_wifi wifi;
struct mgos_config_higrow higrow;
};
/* Parametrized accessor prototypes {{{ */
const struct mgos_config_device *mgos_config_get_device(struct mgos_config *cfg);
const char *mgos_config_get_device_id(struct mgos_config *cfg);
const char *mgos_config_get_device_password(struct mgos_config *cfg);
const struct mgos_config_debug *mgos_config_get_debug(struct mgos_config *cfg);
const char *mgos_config_get_debug_udp_log_addr(struct mgos_config *cfg);
int mgos_config_get_debug_level(struct mgos_config *cfg);
const char *mgos_config_get_debug_filter(struct mgos_config *cfg);
int mgos_config_get_debug_stdout_uart(struct mgos_config *cfg);
int mgos_config_get_debug_stderr_uart(struct mgos_config *cfg);
int mgos_config_get_debug_factory_reset_gpio(struct mgos_config *cfg);
const char *mgos_config_get_debug_mg_mgr_hexdump_file(struct mgos_config *cfg);
int mgos_config_get_debug_mbedtls_level(struct mgos_config *cfg);
const struct mgos_config_sys *mgos_config_get_sys(struct mgos_config *cfg);
const struct mgos_config_sys_mount *mgos_config_get_sys_mount(struct mgos_config *cfg);
const char *mgos_config_get_sys_mount_path(struct mgos_config *cfg);
const char *mgos_config_get_sys_mount_dev_type(struct mgos_config *cfg);
const char *mgos_config_get_sys_mount_dev_opts(struct mgos_config *cfg);
const char *mgos_config_get_sys_mount_fs_type(struct mgos_config *cfg);
const char *mgos_config_get_sys_mount_fs_opts(struct mgos_config *cfg);
const char *mgos_config_get_sys_tz_spec(struct mgos_config *cfg);
int mgos_config_get_sys_wdt_timeout(struct mgos_config *cfg);
const char *mgos_config_get_sys_pref_ota_lib(struct mgos_config *cfg);
int mgos_config_get_sys_esp32_adc_vref(struct mgos_config *cfg);
const char *mgos_config_get_conf_acl(struct mgos_config *cfg);
const struct mgos_config_bt *mgos_config_get_bt(struct mgos_config *cfg);
int mgos_config_get_bt_enable(struct mgos_config *cfg);
const char *mgos_config_get_bt_dev_name(struct mgos_config *cfg);
int mgos_config_get_bt_adv_enable(struct mgos_config *cfg);
const char *mgos_config_get_bt_scan_rsp_data_hex(struct mgos_config *cfg);
int mgos_config_get_bt_keep_enabled(struct mgos_config *cfg);
int mgos_config_get_bt_allow_pairing(struct mgos_config *cfg);
int mgos_config_get_bt_max_paired_devices(struct mgos_config *cfg);
int mgos_config_get_bt_random_address(struct mgos_config *cfg);
const struct mgos_config_bt_gatts *mgos_config_get_bt_gatts(struct mgos_config *cfg);
int mgos_config_get_bt_gatts_min_sec_level(struct mgos_config *cfg);
int mgos_config_get_bt_gatts_require_pairing(struct mgos_config *cfg);
int mgos_config_get_bt_config_svc_enable(struct mgos_config *cfg);
const struct mgos_config_mjs *mgos_config_get_mjs(struct mgos_config *cfg);
int mgos_config_get_mjs_generate_jsc(struct mgos_config *cfg);
const struct mgos_config_rpc *mgos_config_get_rpc(struct mgos_config *cfg);
int mgos_config_get_rpc_enable(struct mgos_config *cfg);
int mgos_config_get_rpc_max_frame_size(struct mgos_config *cfg);
int mgos_config_get_rpc_max_queue_length(struct mgos_config *cfg);
int mgos_config_get_rpc_default_out_channel_idle_close_timeout(struct mgos_config *cfg);
const char *mgos_config_get_rpc_acl_file(struct mgos_config *cfg);
const char *mgos_config_get_rpc_auth_domain(struct mgos_config *cfg);
const char *mgos_config_get_rpc_auth_file(struct mgos_config *cfg);
const struct mgos_config_rpc_ws *mgos_config_get_rpc_ws(struct mgos_config *cfg);
int mgos_config_get_rpc_ws_enable(struct mgos_config *cfg);
const char *mgos_config_get_rpc_ws_server_address(struct mgos_config *cfg);
int mgos_config_get_rpc_ws_reconnect_interval_min(struct mgos_config *cfg);
int mgos_config_get_rpc_ws_reconnect_interval_max(struct mgos_config *cfg);
const char *mgos_config_get_rpc_ws_ssl_server_name(struct mgos_config *cfg);
const char *mgos_config_get_rpc_ws_ssl_ca_file(struct mgos_config *cfg);
const char *mgos_config_get_rpc_ws_ssl_client_cert_file(struct mgos_config *cfg);
const struct mgos_config_rpc_uart *mgos_config_get_rpc_uart(struct mgos_config *cfg);
int mgos_config_get_rpc_uart_uart_no(struct mgos_config *cfg);
int mgos_config_get_rpc_uart_baud_rate(struct mgos_config *cfg);
int mgos_config_get_rpc_uart_fc_type(struct mgos_config *cfg);
int mgos_config_get_rpc_uart_wait_for_start_frame(struct mgos_config *cfg);
const struct mgos_config_wifi *mgos_config_get_wifi(struct mgos_config *cfg);
const struct mgos_config_wifi_sta *mgos_config_get_wifi_sta(struct mgos_config *cfg);
int mgos_config_get_wifi_sta_enable(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_ssid(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_pass(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_user(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_anon_identity(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_cert(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_key(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_ca_cert(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_ip(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_netmask(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_gw(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_nameserver(struct mgos_config *cfg);
const char *mgos_config_get_wifi_sta_dhcp_hostname(struct mgos_config *cfg);
const struct mgos_config_wifi_ap *mgos_config_get_wifi_ap(struct mgos_config *cfg);
int mgos_config_get_wifi_ap_enable(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_ssid(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_pass(struct mgos_config *cfg);
int mgos_config_get_wifi_ap_hidden(struct mgos_config *cfg);
int mgos_config_get_wifi_ap_channel(struct mgos_config *cfg);
int mgos_config_get_wifi_ap_max_connections(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_ip(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_netmask(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_gw(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_dhcp_start(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_dhcp_end(struct mgos_config *cfg);
int mgos_config_get_wifi_ap_trigger_on_gpio(struct mgos_config *cfg);
int mgos_config_get_wifi_ap_disable_after(struct mgos_config *cfg);
const char *mgos_config_get_wifi_ap_hostname(struct mgos_config *cfg);
int mgos_config_get_wifi_ap_keep_enabled(struct mgos_config *cfg);
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_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);
void mgos_config_set_debug_udp_log_addr(struct mgos_config *cfg, const char *val);
void mgos_config_set_debug_level(struct mgos_config *cfg, int val);
void mgos_config_set_debug_filter(struct mgos_config *cfg, const char *val);
void mgos_config_set_debug_stdout_uart(struct mgos_config *cfg, int val);
void mgos_config_set_debug_stderr_uart(struct mgos_config *cfg, int val);
void mgos_config_set_debug_factory_reset_gpio(struct mgos_config *cfg, int val);
void mgos_config_set_debug_mg_mgr_hexdump_file(struct mgos_config *cfg, const char *val);
void mgos_config_set_debug_mbedtls_level(struct mgos_config *cfg, int val);
void mgos_config_set_sys_mount_path(struct mgos_config *cfg, const char *val);
void mgos_config_set_sys_mount_dev_type(struct mgos_config *cfg, const char *val);
void mgos_config_set_sys_mount_dev_opts(struct mgos_config *cfg, const char *val);
void mgos_config_set_sys_mount_fs_type(struct mgos_config *cfg, const char *val);
void mgos_config_set_sys_mount_fs_opts(struct mgos_config *cfg, const char *val);
void mgos_config_set_sys_tz_spec(struct mgos_config *cfg, const char *val);
void mgos_config_set_sys_wdt_timeout(struct mgos_config *cfg, int val);
void mgos_config_set_sys_pref_ota_lib(struct mgos_config *cfg, const char *val);
void mgos_config_set_sys_esp32_adc_vref(struct mgos_config *cfg, int val);
void mgos_config_set_conf_acl(struct mgos_config *cfg, const char *val);
void mgos_config_set_bt_enable(struct mgos_config *cfg, int val);
void mgos_config_set_bt_dev_name(struct mgos_config *cfg, const char *val);
void mgos_config_set_bt_adv_enable(struct mgos_config *cfg, int val);
void mgos_config_set_bt_scan_rsp_data_hex(struct mgos_config *cfg, const char *val);
void mgos_config_set_bt_keep_enabled(struct mgos_config *cfg, int val);
void mgos_config_set_bt_allow_pairing(struct mgos_config *cfg, int val);
void mgos_config_set_bt_max_paired_devices(struct mgos_config *cfg, int val);
void mgos_config_set_bt_random_address(struct mgos_config *cfg, int val);
void mgos_config_set_bt_gatts_min_sec_level(struct mgos_config *cfg, int val);
void mgos_config_set_bt_gatts_require_pairing(struct mgos_config *cfg, int val);
void mgos_config_set_bt_config_svc_enable(struct mgos_config *cfg, int val);
void mgos_config_set_mjs_generate_jsc(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_enable(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_max_frame_size(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_max_queue_length(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_default_out_channel_idle_close_timeout(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_acl_file(struct mgos_config *cfg, const char *val);
void mgos_config_set_rpc_auth_domain(struct mgos_config *cfg, const char *val);
void mgos_config_set_rpc_auth_file(struct mgos_config *cfg, const char *val);
void mgos_config_set_rpc_ws_enable(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_ws_server_address(struct mgos_config *cfg, const char *val);
void mgos_config_set_rpc_ws_reconnect_interval_min(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_ws_reconnect_interval_max(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_ws_ssl_server_name(struct mgos_config *cfg, const char *val);
void mgos_config_set_rpc_ws_ssl_ca_file(struct mgos_config *cfg, const char *val);
void mgos_config_set_rpc_ws_ssl_client_cert_file(struct mgos_config *cfg, const char *val);
void mgos_config_set_rpc_uart_uart_no(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_uart_baud_rate(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_uart_fc_type(struct mgos_config *cfg, int val);
void mgos_config_set_rpc_uart_wait_for_start_frame(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_sta_enable(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_sta_ssid(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_pass(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_user(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_anon_identity(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_cert(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_key(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_ca_cert(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_ip(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_netmask(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_gw(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_nameserver(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_sta_dhcp_hostname(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_enable(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_ap_ssid(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_pass(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_hidden(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_ap_channel(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_ap_max_connections(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_ap_ip(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_netmask(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_gw(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_dhcp_start(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_dhcp_end(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_trigger_on_gpio(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_ap_disable_after(struct mgos_config *cfg, int val);
void mgos_config_set_wifi_ap_hostname(struct mgos_config *cfg, const char *val);
void mgos_config_set_wifi_ap_keep_enabled(struct mgos_config *cfg, int val);
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_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;
static inline const struct mgos_config_device *mgos_sys_config_get_device(void) { return mgos_config_get_device(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_device_id(void) { return mgos_config_get_device_id(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_device_password(void) { return mgos_config_get_device_password(&mgos_sys_config); }
static inline const struct mgos_config_debug *mgos_sys_config_get_debug(void) { return mgos_config_get_debug(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_debug_udp_log_addr(void) { return mgos_config_get_debug_udp_log_addr(&mgos_sys_config); }
static inline int mgos_sys_config_get_debug_level(void) { return mgos_config_get_debug_level(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_debug_filter(void) { return mgos_config_get_debug_filter(&mgos_sys_config); }
static inline int mgos_sys_config_get_debug_stdout_uart(void) { return mgos_config_get_debug_stdout_uart(&mgos_sys_config); }
static inline int mgos_sys_config_get_debug_stderr_uart(void) { return mgos_config_get_debug_stderr_uart(&mgos_sys_config); }
static inline int mgos_sys_config_get_debug_factory_reset_gpio(void) { return mgos_config_get_debug_factory_reset_gpio(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_debug_mg_mgr_hexdump_file(void) { return mgos_config_get_debug_mg_mgr_hexdump_file(&mgos_sys_config); }
static inline int mgos_sys_config_get_debug_mbedtls_level(void) { return mgos_config_get_debug_mbedtls_level(&mgos_sys_config); }
static inline const struct mgos_config_sys *mgos_sys_config_get_sys(void) { return mgos_config_get_sys(&mgos_sys_config); }
static inline const struct mgos_config_sys_mount *mgos_sys_config_get_sys_mount(void) { return mgos_config_get_sys_mount(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_sys_mount_path(void) { return mgos_config_get_sys_mount_path(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_sys_mount_dev_type(void) { return mgos_config_get_sys_mount_dev_type(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_sys_mount_dev_opts(void) { return mgos_config_get_sys_mount_dev_opts(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_sys_mount_fs_type(void) { return mgos_config_get_sys_mount_fs_type(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_sys_mount_fs_opts(void) { return mgos_config_get_sys_mount_fs_opts(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_sys_tz_spec(void) { return mgos_config_get_sys_tz_spec(&mgos_sys_config); }
static inline int mgos_sys_config_get_sys_wdt_timeout(void) { return mgos_config_get_sys_wdt_timeout(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_sys_pref_ota_lib(void) { return mgos_config_get_sys_pref_ota_lib(&mgos_sys_config); }
static inline int mgos_sys_config_get_sys_esp32_adc_vref(void) { return mgos_config_get_sys_esp32_adc_vref(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_conf_acl(void) { return mgos_config_get_conf_acl(&mgos_sys_config); }
static inline const struct mgos_config_bt *mgos_sys_config_get_bt(void) { return mgos_config_get_bt(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_enable(void) { return mgos_config_get_bt_enable(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_bt_dev_name(void) { return mgos_config_get_bt_dev_name(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_adv_enable(void) { return mgos_config_get_bt_adv_enable(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_bt_scan_rsp_data_hex(void) { return mgos_config_get_bt_scan_rsp_data_hex(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_keep_enabled(void) { return mgos_config_get_bt_keep_enabled(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_allow_pairing(void) { return mgos_config_get_bt_allow_pairing(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_max_paired_devices(void) { return mgos_config_get_bt_max_paired_devices(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_random_address(void) { return mgos_config_get_bt_random_address(&mgos_sys_config); }
static inline const struct mgos_config_bt_gatts *mgos_sys_config_get_bt_gatts(void) { return mgos_config_get_bt_gatts(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_gatts_min_sec_level(void) { return mgos_config_get_bt_gatts_min_sec_level(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_gatts_require_pairing(void) { return mgos_config_get_bt_gatts_require_pairing(&mgos_sys_config); }
static inline int mgos_sys_config_get_bt_config_svc_enable(void) { return mgos_config_get_bt_config_svc_enable(&mgos_sys_config); }
static inline const struct mgos_config_mjs *mgos_sys_config_get_mjs(void) { return mgos_config_get_mjs(&mgos_sys_config); }
static inline int mgos_sys_config_get_mjs_generate_jsc(void) { return mgos_config_get_mjs_generate_jsc(&mgos_sys_config); }
static inline const struct mgos_config_rpc *mgos_sys_config_get_rpc(void) { return mgos_config_get_rpc(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_enable(void) { return mgos_config_get_rpc_enable(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_max_frame_size(void) { return mgos_config_get_rpc_max_frame_size(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_max_queue_length(void) { return mgos_config_get_rpc_max_queue_length(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_default_out_channel_idle_close_timeout(void) { return mgos_config_get_rpc_default_out_channel_idle_close_timeout(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_rpc_acl_file(void) { return mgos_config_get_rpc_acl_file(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_rpc_auth_domain(void) { return mgos_config_get_rpc_auth_domain(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_rpc_auth_file(void) { return mgos_config_get_rpc_auth_file(&mgos_sys_config); }
static inline const struct mgos_config_rpc_ws *mgos_sys_config_get_rpc_ws(void) { return mgos_config_get_rpc_ws(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_ws_enable(void) { return mgos_config_get_rpc_ws_enable(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_rpc_ws_server_address(void) { return mgos_config_get_rpc_ws_server_address(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_ws_reconnect_interval_min(void) { return mgos_config_get_rpc_ws_reconnect_interval_min(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_ws_reconnect_interval_max(void) { return mgos_config_get_rpc_ws_reconnect_interval_max(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_rpc_ws_ssl_server_name(void) { return mgos_config_get_rpc_ws_ssl_server_name(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_rpc_ws_ssl_ca_file(void) { return mgos_config_get_rpc_ws_ssl_ca_file(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_rpc_ws_ssl_client_cert_file(void) { return mgos_config_get_rpc_ws_ssl_client_cert_file(&mgos_sys_config); }
static inline const struct mgos_config_rpc_uart *mgos_sys_config_get_rpc_uart(void) { return mgos_config_get_rpc_uart(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_uart_uart_no(void) { return mgos_config_get_rpc_uart_uart_no(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_uart_baud_rate(void) { return mgos_config_get_rpc_uart_baud_rate(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_uart_fc_type(void) { return mgos_config_get_rpc_uart_fc_type(&mgos_sys_config); }
static inline int mgos_sys_config_get_rpc_uart_wait_for_start_frame(void) { return mgos_config_get_rpc_uart_wait_for_start_frame(&mgos_sys_config); }
static inline const struct mgos_config_wifi *mgos_sys_config_get_wifi(void) { return mgos_config_get_wifi(&mgos_sys_config); }
static inline const struct mgos_config_wifi_sta *mgos_sys_config_get_wifi_sta(void) { return mgos_config_get_wifi_sta(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_sta_enable(void) { return mgos_config_get_wifi_sta_enable(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_ssid(void) { return mgos_config_get_wifi_sta_ssid(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_pass(void) { return mgos_config_get_wifi_sta_pass(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_user(void) { return mgos_config_get_wifi_sta_user(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_anon_identity(void) { return mgos_config_get_wifi_sta_anon_identity(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_cert(void) { return mgos_config_get_wifi_sta_cert(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_key(void) { return mgos_config_get_wifi_sta_key(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_ca_cert(void) { return mgos_config_get_wifi_sta_ca_cert(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_ip(void) { return mgos_config_get_wifi_sta_ip(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_netmask(void) { return mgos_config_get_wifi_sta_netmask(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_gw(void) { return mgos_config_get_wifi_sta_gw(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_nameserver(void) { return mgos_config_get_wifi_sta_nameserver(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_sta_dhcp_hostname(void) { return mgos_config_get_wifi_sta_dhcp_hostname(&mgos_sys_config); }
static inline const struct mgos_config_wifi_ap *mgos_sys_config_get_wifi_ap(void) { return mgos_config_get_wifi_ap(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_ap_enable(void) { return mgos_config_get_wifi_ap_enable(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_ssid(void) { return mgos_config_get_wifi_ap_ssid(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_pass(void) { return mgos_config_get_wifi_ap_pass(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_ap_hidden(void) { return mgos_config_get_wifi_ap_hidden(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_ap_channel(void) { return mgos_config_get_wifi_ap_channel(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_ap_max_connections(void) { return mgos_config_get_wifi_ap_max_connections(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_ip(void) { return mgos_config_get_wifi_ap_ip(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_netmask(void) { return mgos_config_get_wifi_ap_netmask(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_gw(void) { return mgos_config_get_wifi_ap_gw(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_dhcp_start(void) { return mgos_config_get_wifi_ap_dhcp_start(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_dhcp_end(void) { return mgos_config_get_wifi_ap_dhcp_end(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_ap_trigger_on_gpio(void) { return mgos_config_get_wifi_ap_trigger_on_gpio(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_ap_disable_after(void) { return mgos_config_get_wifi_ap_disable_after(&mgos_sys_config); }
static inline const char *mgos_sys_config_get_wifi_ap_hostname(void) { return mgos_config_get_wifi_ap_hostname(&mgos_sys_config); }
static inline int mgos_sys_config_get_wifi_ap_keep_enabled(void) { return mgos_config_get_wifi_ap_keep_enabled(&mgos_sys_config); }
static inline const struct mgos_config_higrow *mgos_sys_config_get_higrow(void) { return mgos_config_get_higrow(&mgos_sys_config); }
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_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); }
static inline void mgos_sys_config_set_debug_udp_log_addr(const char *val) { mgos_config_set_debug_udp_log_addr(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_debug_level(int val) { mgos_config_set_debug_level(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_debug_filter(const char *val) { mgos_config_set_debug_filter(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_debug_stdout_uart(int val) { mgos_config_set_debug_stdout_uart(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_debug_stderr_uart(int val) { mgos_config_set_debug_stderr_uart(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_debug_factory_reset_gpio(int val) { mgos_config_set_debug_factory_reset_gpio(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_debug_mg_mgr_hexdump_file(const char *val) { mgos_config_set_debug_mg_mgr_hexdump_file(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_debug_mbedtls_level(int val) { mgos_config_set_debug_mbedtls_level(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_mount_path(const char *val) { mgos_config_set_sys_mount_path(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_mount_dev_type(const char *val) { mgos_config_set_sys_mount_dev_type(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_mount_dev_opts(const char *val) { mgos_config_set_sys_mount_dev_opts(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_mount_fs_type(const char *val) { mgos_config_set_sys_mount_fs_type(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_mount_fs_opts(const char *val) { mgos_config_set_sys_mount_fs_opts(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_tz_spec(const char *val) { mgos_config_set_sys_tz_spec(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_wdt_timeout(int val) { mgos_config_set_sys_wdt_timeout(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_pref_ota_lib(const char *val) { mgos_config_set_sys_pref_ota_lib(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_sys_esp32_adc_vref(int val) { mgos_config_set_sys_esp32_adc_vref(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_conf_acl(const char *val) { mgos_config_set_conf_acl(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_enable(int val) { mgos_config_set_bt_enable(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_dev_name(const char *val) { mgos_config_set_bt_dev_name(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_adv_enable(int val) { mgos_config_set_bt_adv_enable(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_scan_rsp_data_hex(const char *val) { mgos_config_set_bt_scan_rsp_data_hex(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_keep_enabled(int val) { mgos_config_set_bt_keep_enabled(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_allow_pairing(int val) { mgos_config_set_bt_allow_pairing(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_max_paired_devices(int val) { mgos_config_set_bt_max_paired_devices(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_random_address(int val) { mgos_config_set_bt_random_address(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_gatts_min_sec_level(int val) { mgos_config_set_bt_gatts_min_sec_level(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_gatts_require_pairing(int val) { mgos_config_set_bt_gatts_require_pairing(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_bt_config_svc_enable(int val) { mgos_config_set_bt_config_svc_enable(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_mjs_generate_jsc(int val) { mgos_config_set_mjs_generate_jsc(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_enable(int val) { mgos_config_set_rpc_enable(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_max_frame_size(int val) { mgos_config_set_rpc_max_frame_size(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_max_queue_length(int val) { mgos_config_set_rpc_max_queue_length(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_default_out_channel_idle_close_timeout(int val) { mgos_config_set_rpc_default_out_channel_idle_close_timeout(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_acl_file(const char *val) { mgos_config_set_rpc_acl_file(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_auth_domain(const char *val) { mgos_config_set_rpc_auth_domain(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_auth_file(const char *val) { mgos_config_set_rpc_auth_file(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_ws_enable(int val) { mgos_config_set_rpc_ws_enable(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_ws_server_address(const char *val) { mgos_config_set_rpc_ws_server_address(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_ws_reconnect_interval_min(int val) { mgos_config_set_rpc_ws_reconnect_interval_min(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_ws_reconnect_interval_max(int val) { mgos_config_set_rpc_ws_reconnect_interval_max(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_ws_ssl_server_name(const char *val) { mgos_config_set_rpc_ws_ssl_server_name(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_ws_ssl_ca_file(const char *val) { mgos_config_set_rpc_ws_ssl_ca_file(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_ws_ssl_client_cert_file(const char *val) { mgos_config_set_rpc_ws_ssl_client_cert_file(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_uart_uart_no(int val) { mgos_config_set_rpc_uart_uart_no(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_uart_baud_rate(int val) { mgos_config_set_rpc_uart_baud_rate(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_uart_fc_type(int val) { mgos_config_set_rpc_uart_fc_type(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_rpc_uart_wait_for_start_frame(int val) { mgos_config_set_rpc_uart_wait_for_start_frame(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_enable(int val) { mgos_config_set_wifi_sta_enable(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_ssid(const char *val) { mgos_config_set_wifi_sta_ssid(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_pass(const char *val) { mgos_config_set_wifi_sta_pass(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_user(const char *val) { mgos_config_set_wifi_sta_user(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_anon_identity(const char *val) { mgos_config_set_wifi_sta_anon_identity(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_cert(const char *val) { mgos_config_set_wifi_sta_cert(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_key(const char *val) { mgos_config_set_wifi_sta_key(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_ca_cert(const char *val) { mgos_config_set_wifi_sta_ca_cert(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_ip(const char *val) { mgos_config_set_wifi_sta_ip(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_netmask(const char *val) { mgos_config_set_wifi_sta_netmask(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_gw(const char *val) { mgos_config_set_wifi_sta_gw(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_nameserver(const char *val) { mgos_config_set_wifi_sta_nameserver(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_sta_dhcp_hostname(const char *val) { mgos_config_set_wifi_sta_dhcp_hostname(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_enable(int val) { mgos_config_set_wifi_ap_enable(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_ssid(const char *val) { mgos_config_set_wifi_ap_ssid(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_pass(const char *val) { mgos_config_set_wifi_ap_pass(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_hidden(int val) { mgos_config_set_wifi_ap_hidden(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_channel(int val) { mgos_config_set_wifi_ap_channel(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_max_connections(int val) { mgos_config_set_wifi_ap_max_connections(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_ip(const char *val) { mgos_config_set_wifi_ap_ip(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_netmask(const char *val) { mgos_config_set_wifi_ap_netmask(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_gw(const char *val) { mgos_config_set_wifi_ap_gw(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_dhcp_start(const char *val) { mgos_config_set_wifi_ap_dhcp_start(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_dhcp_end(const char *val) { mgos_config_set_wifi_ap_dhcp_end(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_trigger_on_gpio(int val) { mgos_config_set_wifi_ap_trigger_on_gpio(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_disable_after(int val) { mgos_config_set_wifi_ap_disable_after(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_hostname(const char *val) { mgos_config_set_wifi_ap_hostname(&mgos_sys_config, val); }
static inline void mgos_sys_config_set_wifi_ap_keep_enabled(int val) { mgos_config_set_wifi_ap_keep_enabled(&mgos_sys_config, val); }
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_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();
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* MGOS_CONFIG_H_ */

BIN
build/gen/mgos_config.o Normal file

Binary file not shown.

View File

@@ -0,0 +1,115 @@
{
"device": {
"id": "HiGrow_??????",
"password": ""
},
"debug": {
"udp_log_addr": "",
"level": 2,
"filter": "",
"stdout_uart": 0,
"stderr_uart": 0,
"factory_reset_gpio": -1,
"mg_mgr_hexdump_file": "",
"mbedtls_level": 0
},
"sys": {
"mount": {
"path": "",
"dev_type": "",
"dev_opts": "",
"fs_type": "",
"fs_opts": ""
},
"tz_spec": "",
"wdt_timeout": 30,
"pref_ota_lib": "",
"esp32_adc_vref": 0
},
"conf_acl": "*",
"bt": {
"enable": true,
"dev_name": "HiGrowBT_",
"adv_enable": true,
"scan_rsp_data_hex": "",
"keep_enabled": false,
"allow_pairing": true,
"max_paired_devices": -1,
"random_address": true,
"gatts": {
"min_sec_level": 0,
"require_pairing": false
},
"config_svc_enable": true
},
"mjs": {
"generate_jsc": true
},
"rpc": {
"enable": true,
"max_frame_size": 4096,
"max_queue_length": 25,
"default_out_channel_idle_close_timeout": 10,
"acl_file": "",
"auth_domain": "",
"auth_file": "",
"ws": {
"enable": true,
"server_address": "",
"reconnect_interval_min": 1,
"reconnect_interval_max": 60,
"ssl_server_name": "",
"ssl_ca_file": "",
"ssl_client_cert_file": ""
},
"uart": {
"uart_no": 0,
"baud_rate": 115200,
"fc_type": 2,
"wait_for_start_frame": true
}
},
"wifi": {
"sta": {
"enable": false,
"ssid": "",
"pass": "",
"user": "",
"anon_identity": "",
"cert": "",
"key": "",
"ca_cert": "",
"ip": "",
"netmask": "",
"gw": "",
"nameserver": "",
"dhcp_hostname": ""
},
"ap": {
"enable": false,
"ssid": "Mongoose_??????",
"pass": "Mongoose",
"hidden": false,
"channel": 6,
"max_connections": 10,
"ip": "192.168.4.1",
"netmask": "255.255.255.0",
"gw": "192.168.4.1",
"dhcp_start": "192.168.4.2",
"dhcp_end": "192.168.4.100",
"trigger_on_gpio": -1,
"disable_after": 0,
"hostname": "",
"keep_enabled": true
}
},
"higrow": {
"deviceId": "",
"temperature": 0.0,
"humidity": 0.0,
"light": 0,
"moisture": 0,
"connected": false,
"battery_calibration": 2360
}
}

View File

@@ -0,0 +1,101 @@
[
["device", "o", {"title": "Device settings"}],
["device.id", "s", {"title": "Device ID"}],
["device.password", "s", {"title": "Device password"}],
["debug", "o", {"title": "Debug Settings"}],
["debug.udp_log_addr", "s", {"title": "Send logs to this ip:port (UDP)"}],
["debug.level", "i", {"title": "Level", "type": "select", "values": [{"title": "NONE", "value": -1}, {"title": "ERROR", "value": 0}, {"title": "WARN", "value": 1}, {"title": "INFO", "value": 2}, {"title": "DEBUG", "value": 3}, {"title": "VERBOSE_DEBUG", "value": 4}]}],
["debug.filter", "s", {"title": "Log filter against source file name or function name. Comma separated list of prefix match glob patterns, e.g. *mqtt*,mgos_wifi"}],
["debug.stdout_uart", "i", {"title": "STDOUT UART (-1 to disable)"}],
["debug.stderr_uart", "i", {"title": "STDERR UART (-1 to disable)"}],
["debug.factory_reset_gpio", "i", {"title": "Factory reset GPIO (low on boot)"}],
["debug.mg_mgr_hexdump_file", "s", {"title": "File name to hexdump network traffic to. Use '-' for stdout, '--' for stderr."}],
["debug.mbedtls_level", "i", {"title": "mbedTLS debug level"}],
["sys", "o", {"title": "System settings"}],
["sys.mount", "o", {"title": "Extra filesystem to mount"}],
["sys.mount.path", "s", {"title": "Mount point"}],
["sys.mount.dev_type", "s", {"title": "Storage device type"}],
["sys.mount.dev_opts", "s", {"title": "Storage device options"}],
["sys.mount.fs_type", "s", {"title": "Filesystem type"}],
["sys.mount.fs_opts", "s", {"title": "Filesystem options"}],
["sys.tz_spec", "s", {"title": "See formats for the TZ env var: \"man tzset\". Formats like \":/path/to/file\" are not supported"}],
["sys.wdt_timeout", "i", {"title": "Watchdog timeout (seconds)"}],
["sys.pref_ota_lib", "s", {"title": "Preferred ota lib, e.g. dash, ota-http-client"}],
["sys.esp32_adc_vref", "i", {"title": "ADC Vref, in mV"}],
["conf_acl", "s", {"title": "Conf ACL"}],
["bt", "o", {"title": "Bluetooth settings"}],
["bt.enable", "b", {"title": "Enable BT"}],
["bt.dev_name", "s", {"title": "Device name; defaults to device.id"}],
["bt.adv_enable", "b", {"title": "Advertise services"}],
["bt.scan_rsp_data_hex", "s", {"title": "Scan response data, hex-encoded"}],
["bt.keep_enabled", "b", {"title": "By default, BT will be disabled once WiFi is configured and connects. Set this to true to keep BT enabled."}],
["bt.allow_pairing", "b", {"title": "Allow pairing/bonding with other devices"}],
["bt.max_paired_devices", "i", {"title": "Max number of paired devices; -1 - no limit"}],
["bt.random_address", "b", {"title": "Use random BT address"}],
["bt.gatts", "o", {"title": "GATTS settings"}],
["bt.gatts.min_sec_level", "i", {"title": "0 - no auth required, 1 - encryption reqd, 2 - encryption + MITM reqd"}],
["bt.gatts.require_pairing", "b", {"title": "Require device to be paired before accessing services"}],
["bt.config_svc_enable", "b", {"title": "Enable the config service"}],
["mjs", "o", {"title": "mJS settings"}],
["mjs.generate_jsc", "b", {"title": "Generate .jsc file when executing any .js file"}],
["rpc", "o", {"title": "RPC settings"}],
["rpc.enable", "b", {"title": "Enable RPC"}],
["rpc.max_frame_size", "i", {"title": "Max Frame Size"}],
["rpc.max_queue_length", "i", {"title": "Max Queue Length"}],
["rpc.default_out_channel_idle_close_timeout", "i", {"title": "Default idle close timeout for outbound channels"}],
["rpc.acl_file", "s", {"title": "File with RPC ACL JSON"}],
["rpc.auth_domain", "s", {"title": "Realm to use for digest authentication"}],
["rpc.auth_file", "s", {"title": "File with user credentials in the htdigest format"}],
["rpc.ws", "o", {"title": "RPC over WebSocket settings"}],
["rpc.ws.enable", "b", {"title": "Enable RPC over WebSocket"}],
["rpc.ws.server_address", "s", {"title": "Cloud server address"}],
["rpc.ws.reconnect_interval_min", "i", {"title": "Minimal reconnect interval"}],
["rpc.ws.reconnect_interval_max", "i", {"title": "Maximal reconnect interval"}],
["rpc.ws.ssl_server_name", "s", {"title": "TLS Server Name"}],
["rpc.ws.ssl_ca_file", "s", {"title": "TLS CA file"}],
["rpc.ws.ssl_client_cert_file", "s", {"title": "TLS client cert file"}],
["rpc.uart", "o", {"title": "RPC-over-UART settings"}],
["rpc.uart.uart_no", "i", {"title": "UART number (-1 to disable)"}],
["rpc.uart.baud_rate", "i", {"title": "Baud rate"}],
["rpc.uart.fc_type", "i", {"title": "Flow control: 0 - none, 1 - CTS/RTS, 2 - XON/XOFF"}],
["rpc.uart.wait_for_start_frame", "b", {"title": "Wait for an incoming frame before using the channel"}],
["wifi", "o", {"hide": true}],
["wifi.sta", "o", {"title": "WiFi Station"}],
["wifi.sta.enable", "b", {"title": "Connect to existing WiFi"}],
["wifi.sta.ssid", "s", {"title": "SSID"}],
["wifi.sta.pass", "s", {"title": "Password", "type": "password"}],
["wifi.sta.user", "s", {"title": "Username for WPA-PEAP mode"}],
["wifi.sta.anon_identity", "s", {"title": "Anonymous identity for WPA mode"}],
["wifi.sta.cert", "s", {"title": "Client certificate for WPA-TTLS mode"}],
["wifi.sta.key", "s", {"title": "Client key for WPA-TTLS mode"}],
["wifi.sta.ca_cert", "s", {"title": "CA certificate for WPA-enterprise mode"}],
["wifi.sta.ip", "s", {"title": "Static IP Address"}],
["wifi.sta.netmask", "s", {"title": "Static Netmask"}],
["wifi.sta.gw", "s", {"title": "Static Default Gateway"}],
["wifi.sta.nameserver", "s", {"title": "DNS Server"}],
["wifi.sta.dhcp_hostname", "s", {"title": "Host name to include in DHCP requests"}],
["wifi.ap", "o", {"title": "WiFi Access Point"}],
["wifi.ap.enable", "b", {"title": "Enable"}],
["wifi.ap.ssid", "s", {"title": "SSID"}],
["wifi.ap.pass", "s", {"title": "Password", "type": "password"}],
["wifi.ap.hidden", "b", {"title": "Hide SSID"}],
["wifi.ap.channel", "i", {"title": "Channel"}],
["wifi.ap.max_connections", "i", {"title": "Max connections"}],
["wifi.ap.ip", "s", {"title": "IP address"}],
["wifi.ap.netmask", "s", {"title": "Network Mask"}],
["wifi.ap.gw", "s", {"title": "Default Gateway"}],
["wifi.ap.dhcp_start", "s", {"title": "DHCP Start Address"}],
["wifi.ap.dhcp_end", "s", {"title": "DHCP End Address"}],
["wifi.ap.trigger_on_gpio", "i", {"title": "Trigger AP on low GPIO"}],
["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.deviceId", "s", {"title": "DeviceId"}],
["higrow.temperature", "d", {"title": "Temperature"}],
["higrow.humidity", "d", {"title": "Humidity"}],
["higrow.light", "i", {"title": "Light"}],
["higrow.moisture", "i", {"title": "Moisture"}],
["higrow.connected", "b", {"title": "Connected"}],
["higrow.battery_calibration", "i", {"title": "Battery ADC value at 4000mV"}]
]

56
build/gen/mgos_ro_vars.c Normal file
View File

@@ -0,0 +1,56 @@
/* Generated file - do not edit. */
#include <stddef.h>
#include "mgos_ro_vars.h"
const struct mgos_conf_entry mgos_ro_vars_schema_[6] = {
{.type = CONF_TYPE_OBJECT, .key = "", .num_desc = 5},
{.type = CONF_TYPE_STRING, .key = "mac_address", .offset = offsetof(struct mgos_ro_vars, mac_address)},
{.type = CONF_TYPE_STRING, .key = "arch", .offset = offsetof(struct mgos_ro_vars, arch)},
{.type = CONF_TYPE_STRING, .key = "fw_version", .offset = offsetof(struct mgos_ro_vars, fw_version)},
{.type = CONF_TYPE_STRING, .key = "fw_timestamp", .offset = offsetof(struct mgos_ro_vars, fw_timestamp)},
{.type = CONF_TYPE_STRING, .key = "fw_id", .offset = offsetof(struct mgos_ro_vars, fw_id)},
};
const struct mgos_conf_entry *mgos_ro_vars_schema() {
return mgos_ro_vars_schema_;
}
/* Global instance */
struct mgos_ro_vars mgos_sys_ro_vars;
/* Getters {{{ */
const char *mgos_ro_vars_get_mac_address(struct mgos_ro_vars *cfg) {
return cfg->mac_address;
}
const char *mgos_ro_vars_get_arch(struct mgos_ro_vars *cfg) {
return cfg->arch;
}
const char *mgos_ro_vars_get_fw_version(struct mgos_ro_vars *cfg) {
return cfg->fw_version;
}
const char *mgos_ro_vars_get_fw_timestamp(struct mgos_ro_vars *cfg) {
return cfg->fw_timestamp;
}
const char *mgos_ro_vars_get_fw_id(struct mgos_ro_vars *cfg) {
return cfg->fw_id;
}
/* }}} */
/* Setters {{{ */
void mgos_ro_vars_set_mac_address(struct mgos_ro_vars *cfg, const char *val) {
mgos_conf_set_str(&cfg->mac_address, val);
}
void mgos_ro_vars_set_arch(struct mgos_ro_vars *cfg, const char *val) {
mgos_conf_set_str(&cfg->arch, val);
}
void mgos_ro_vars_set_fw_version(struct mgos_ro_vars *cfg, const char *val) {
mgos_conf_set_str(&cfg->fw_version, val);
}
void mgos_ro_vars_set_fw_timestamp(struct mgos_ro_vars *cfg, const char *val) {
mgos_conf_set_str(&cfg->fw_timestamp, val);
}
void mgos_ro_vars_set_fw_id(struct mgos_ro_vars *cfg, const char *val) {
mgos_conf_set_str(&cfg->fw_id, val);
}
/* }}} */

58
build/gen/mgos_ro_vars.h Normal file
View File

@@ -0,0 +1,58 @@
/*
* Generated file - do not edit.
* Command: /mongoose-os/fw/tools/gen_sys_config.py --c_name=mgos_ro_vars --c_global_name=mgos_sys_ro_vars --dest_dir=/fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/build/gen/ /mongoose-os/fw/src/mgos_ro_vars_schema.yaml
*/
#ifndef MGOS_RO_VARS_H_
#define MGOS_RO_VARS_H_
#include "mgos_config_util.h"
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
struct mgos_ro_vars {
char *mac_address;
char *arch;
char *fw_version;
char *fw_timestamp;
char *fw_id;
};
/* Parametrized accessor prototypes {{{ */
const char *mgos_ro_vars_get_mac_address(struct mgos_ro_vars *cfg);
const char *mgos_ro_vars_get_arch(struct mgos_ro_vars *cfg);
const char *mgos_ro_vars_get_fw_version(struct mgos_ro_vars *cfg);
const char *mgos_ro_vars_get_fw_timestamp(struct mgos_ro_vars *cfg);
const char *mgos_ro_vars_get_fw_id(struct mgos_ro_vars *cfg);
void mgos_ro_vars_set_mac_address(struct mgos_ro_vars *cfg, const char *val);
void mgos_ro_vars_set_arch(struct mgos_ro_vars *cfg, const char *val);
void mgos_ro_vars_set_fw_version(struct mgos_ro_vars *cfg, const char *val);
void mgos_ro_vars_set_fw_timestamp(struct mgos_ro_vars *cfg, const char *val);
void mgos_ro_vars_set_fw_id(struct mgos_ro_vars *cfg, const char *val);
/* }}} */
extern struct mgos_ro_vars mgos_sys_ro_vars;
static inline const char *mgos_sys_ro_vars_get_mac_address(void) { return mgos_ro_vars_get_mac_address(&mgos_sys_ro_vars); }
static inline const char *mgos_sys_ro_vars_get_arch(void) { return mgos_ro_vars_get_arch(&mgos_sys_ro_vars); }
static inline const char *mgos_sys_ro_vars_get_fw_version(void) { return mgos_ro_vars_get_fw_version(&mgos_sys_ro_vars); }
static inline const char *mgos_sys_ro_vars_get_fw_timestamp(void) { return mgos_ro_vars_get_fw_timestamp(&mgos_sys_ro_vars); }
static inline const char *mgos_sys_ro_vars_get_fw_id(void) { return mgos_ro_vars_get_fw_id(&mgos_sys_ro_vars); }
static inline void mgos_sys_ro_vars_set_mac_address(const char *val) { mgos_ro_vars_set_mac_address(&mgos_sys_ro_vars, val); }
static inline void mgos_sys_ro_vars_set_arch(const char *val) { mgos_ro_vars_set_arch(&mgos_sys_ro_vars, val); }
static inline void mgos_sys_ro_vars_set_fw_version(const char *val) { mgos_ro_vars_set_fw_version(&mgos_sys_ro_vars, val); }
static inline void mgos_sys_ro_vars_set_fw_timestamp(const char *val) { mgos_ro_vars_set_fw_timestamp(&mgos_sys_ro_vars, val); }
static inline void mgos_sys_ro_vars_set_fw_id(const char *val) { mgos_ro_vars_set_fw_id(&mgos_sys_ro_vars, val); }
const struct mgos_conf_entry *mgos_ro_vars_schema();
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif /* MGOS_RO_VARS_H_ */

View File

@@ -0,0 +1,7 @@
{
"mac_address": "",
"arch": "",
"fw_version": "",
"fw_timestamp": "",
"fw_id": ""
}

View File

@@ -0,0 +1,7 @@
[
["mac_address", "s", {"read_only": true, "title": "MAC address"}],
["arch", "s", {"read_only": true, "title": "Platform"}],
["fw_version", "s", {"read_only": true, "title": "FW version"}],
["fw_timestamp", "s", {"read_only": true, "title": "Build timestamp"}],
["fw_id", "s", {"read_only": true, "title": "Build ID"}]
]

View File

@@ -0,0 +1,290 @@
- - sys.esp32_adc_vref
- i
- 0
- title: ADC Vref, in mV
- - bt
- o
- title: Bluetooth settings
- - bt.enable
- b
- true
- title: Enable BT
- - bt.dev_name
- s
- ""
- title: Device name; defaults to device.id
- - bt.adv_enable
- b
- true
- title: Advertise services
- - bt.scan_rsp_data_hex
- s
- ""
- title: Scan response data, hex-encoded
- - bt.keep_enabled
- b
- false
- title: By default, BT will be disabled once WiFi is configured and connects. Set
this to true to keep BT enabled.
- - bt.allow_pairing
- b
- true
- title: Allow pairing/bonding with other devices
- - bt.max_paired_devices
- i
- -1
- title: Max number of paired devices; -1 - no limit
- - bt.random_address
- b
- true
- title: Use random BT address
- - bt.gatts
- o
- title: GATTS settings
- - bt.gatts.min_sec_level
- i
- 0
- title: 0 - no auth required, 1 - encryption reqd, 2 - encryption + MITM reqd
- - bt.gatts.require_pairing
- b
- false
- title: Require device to be paired before accessing services
- - bt.config_svc_enable
- b
- true
- title: Enable the config service
- - mjs
- o
- title: mJS settings
- - mjs.generate_jsc
- b
- true
- title: Generate .jsc file when executing any .js file
- - rpc
- o
- title: RPC settings
- - rpc.enable
- b
- true
- title: Enable RPC
- - rpc.max_frame_size
- i
- 4096
- title: Max Frame Size
- - rpc.max_queue_length
- i
- 25
- title: Max Queue Length
- - rpc.default_out_channel_idle_close_timeout
- i
- 10
- title: Default idle close timeout for outbound channels
- - rpc.acl_file
- s
- title: File with RPC ACL JSON
- - rpc.auth_domain
- s
- title: Realm to use for digest authentication
- - rpc.auth_file
- s
- title: File with user credentials in the htdigest format
- - rpc.ws
- o
- title: RPC over WebSocket settings
- - rpc.ws.enable
- b
- true
- title: Enable RPC over WebSocket
- - rpc.ws.server_address
- s
- ""
- title: Cloud server address
- - rpc.ws.reconnect_interval_min
- i
- 1
- title: Minimal reconnect interval
- - rpc.ws.reconnect_interval_max
- i
- 60
- title: Maximal reconnect interval
- - rpc.ws.ssl_server_name
- s
- title: TLS Server Name
- - rpc.ws.ssl_ca_file
- s
- title: TLS CA file
- - rpc.ws.ssl_client_cert_file
- s
- title: TLS client cert file
- - rpc.uart
- o
- title: RPC-over-UART settings
- - rpc.uart.uart_no
- i
- title: UART number (-1 to disable)
- - rpc.uart.baud_rate
- i
- 115200
- title: Baud rate
- - rpc.uart.fc_type
- i
- 2
- title: 'Flow control: 0 - none, 1 - CTS/RTS, 2 - XON/XOFF'
- - rpc.uart.wait_for_start_frame
- b
- true
- title: Wait for an incoming frame before using the channel
- - wifi
- o
- hide: true
- - wifi.sta
- o
- title: WiFi Station
- - wifi.sta.enable
- b
- title: Connect to existing WiFi
- - wifi.sta.ssid
- s
- title: SSID
- - wifi.sta.pass
- s
- title: Password
type: password
- - wifi.sta.user
- s
- title: Username for WPA-PEAP mode
- - wifi.sta.anon_identity
- s
- title: Anonymous identity for WPA mode
- - wifi.sta.cert
- s
- title: Client certificate for WPA-TTLS mode
- - wifi.sta.key
- s
- title: Client key for WPA-TTLS mode
- - wifi.sta.ca_cert
- s
- title: CA certificate for WPA-enterprise mode
- - wifi.sta.ip
- s
- title: Static IP Address
- - wifi.sta.netmask
- s
- title: Static Netmask
- - wifi.sta.gw
- s
- title: Static Default Gateway
- - wifi.sta.nameserver
- s
- title: DNS Server
- - wifi.sta.dhcp_hostname
- s
- title: Host name to include in DHCP requests
- - wifi.ap
- o
- title: WiFi Access Point
- - wifi.ap.enable
- b
- true
- title: Enable
- - wifi.ap.ssid
- s
- Mongoose_??????
- title: SSID
- - wifi.ap.pass
- s
- Mongoose
- title: Password
type: password
- - wifi.ap.hidden
- b
- false
- title: Hide SSID
- - wifi.ap.channel
- i
- 6
- title: Channel
- - wifi.ap.max_connections
- i
- 10
- title: Max connections
- - wifi.ap.ip
- s
- 192.168.4.1
- title: IP address
- - wifi.ap.netmask
- s
- 255.255.255.0
- title: Network Mask
- - wifi.ap.gw
- s
- 192.168.4.1
- title: Default Gateway
- - wifi.ap.dhcp_start
- s
- 192.168.4.2
- title: DHCP Start Address
- - wifi.ap.dhcp_end
- s
- 192.168.4.100
- title: DHCP End Address
- - wifi.ap.trigger_on_gpio
- i
- -1
- title: Trigger AP on low GPIO
- - wifi.ap.disable_after
- i
- 0
- 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
- true
- title: Keep AP enabled when station is on
- - higrow
- o
- title: LilyGo HiGrow ESP32 Plant Sensor App Settings
- - higrow.deviceId
- s
- ""
- title: DeviceId
- - higrow.temperature
- d
- 0
- title: Temperature
- - higrow.humidity
- d
- 0
- title: Humidity
- - higrow.light
- i
- 0
- title: Light
- - higrow.moisture
- i
- 0
- title: Moisture
- - higrow.connected
- b
- false
- title: Connected
- - higrow.battery_calibration
- i
- 2360
- title: Battery ADC value at 4000mV
- - wifi.sta.enable
- false
- - wifi.sta.ssid
- ""
- - wifi.sta.pass
- ""
- - wifi.ap.enable
- false
- - device.id
- HiGrow_??????
- - bt.dev_name
- HiGrowBT_

481
build/gen/mos_final.yml Normal file
View File

@@ -0,0 +1,481 @@
name: LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware
type: app
version: "1.0"
platform: esp32
platforms:
- esp32
author: Jason Harrell <info@latitude17.io>
description: LilyGo HiGrow ESP32 Plant Sensor
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
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/mgos_bt.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/mgos_bt_gap.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt_gap.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt_gattc.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt_gatts.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-service-config/src/esp32/esp32_bt_svc_config.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/ca-bundle/src/mgos_ca_bundle.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/dht/src/mgos_dht.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/src/mos_mjs.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/modules/mjs_module/mjs.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/esp32/src/esp32_mjs.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc_channel.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc_channel_http.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc_channel_ws.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mgos_rpc.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-config/src/mgos_service_config.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-fs/src/mgos_service_filesystem.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-uart/src/mgos_rpc_channel_uart.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/src/mgos_wifi.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/src/mjs_wifi.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/esp32/src/esp32_wifi.c
includes:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/adc/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/include/esp32
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/dht/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/include/mg_rpc
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-config/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-fs/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-uart/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/include
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/esp32/include
filesystem:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/ca-bundle/fs/ca.pem
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_bitbang.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_config.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_events.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_gpio.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_grove.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_http.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_log.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_net.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_sys.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_timer.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/api_uart.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/fs/init.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/modules/mjs_module/mjs/lib/api_dataview.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/modules/mjs_module/mjs/lib/api_file.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/modules/mjs_module/mjs/lib/api_math.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/adc/mjs_fs/api_adc.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/dht/mjs_fs/api_dht.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/mjs_fs/api_rpc.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/mjs_fs/api_wifi.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/esp32/fs/api_arch_uart.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/esp32/fs/api_esp32.js
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/fs/init.js
modules:
- origin: https://github.com/cesanta/mjs
location: https://github.com/cesanta/mjs
name: mjs_module
suffixtpl: ""
config_schema:
- - sys.esp32_adc_vref
- i
- 0
- title: ADC Vref, in mV
- - bt
- o
- title: Bluetooth settings
- - bt.enable
- b
- true
- title: Enable BT
- - bt.dev_name
- s
- ""
- title: Device name; defaults to device.id
- - bt.adv_enable
- b
- true
- title: Advertise services
- - bt.scan_rsp_data_hex
- s
- ""
- title: Scan response data, hex-encoded
- - bt.keep_enabled
- b
- false
- title: By default, BT will be disabled once WiFi is configured and connects. Set
this to true to keep BT enabled.
- - bt.allow_pairing
- b
- true
- title: Allow pairing/bonding with other devices
- - bt.max_paired_devices
- i
- -1
- title: Max number of paired devices; -1 - no limit
- - bt.random_address
- b
- true
- title: Use random BT address
- - bt.gatts
- o
- title: GATTS settings
- - bt.gatts.min_sec_level
- i
- 0
- title: 0 - no auth required, 1 - encryption reqd, 2 - encryption + MITM reqd
- - bt.gatts.require_pairing
- b
- false
- title: Require device to be paired before accessing services
- - bt.config_svc_enable
- b
- true
- title: Enable the config service
- - mjs
- o
- title: mJS settings
- - mjs.generate_jsc
- b
- true
- title: Generate .jsc file when executing any .js file
- - rpc
- o
- title: RPC settings
- - rpc.enable
- b
- true
- title: Enable RPC
- - rpc.max_frame_size
- i
- 4096
- title: Max Frame Size
- - rpc.max_queue_length
- i
- 25
- title: Max Queue Length
- - rpc.default_out_channel_idle_close_timeout
- i
- 10
- title: Default idle close timeout for outbound channels
- - rpc.acl_file
- s
- title: File with RPC ACL JSON
- - rpc.auth_domain
- s
- title: Realm to use for digest authentication
- - rpc.auth_file
- s
- title: File with user credentials in the htdigest format
- - rpc.ws
- o
- title: RPC over WebSocket settings
- - rpc.ws.enable
- b
- true
- title: Enable RPC over WebSocket
- - rpc.ws.server_address
- s
- ""
- title: Cloud server address
- - rpc.ws.reconnect_interval_min
- i
- 1
- title: Minimal reconnect interval
- - rpc.ws.reconnect_interval_max
- i
- 60
- title: Maximal reconnect interval
- - rpc.ws.ssl_server_name
- s
- title: TLS Server Name
- - rpc.ws.ssl_ca_file
- s
- title: TLS CA file
- - rpc.ws.ssl_client_cert_file
- s
- title: TLS client cert file
- - rpc.uart
- o
- title: RPC-over-UART settings
- - rpc.uart.uart_no
- i
- title: UART number (-1 to disable)
- - rpc.uart.baud_rate
- i
- 115200
- title: Baud rate
- - rpc.uart.fc_type
- i
- 2
- title: 'Flow control: 0 - none, 1 - CTS/RTS, 2 - XON/XOFF'
- - rpc.uart.wait_for_start_frame
- b
- true
- title: Wait for an incoming frame before using the channel
- - wifi
- o
- hide: true
- - wifi.sta
- o
- title: WiFi Station
- - wifi.sta.enable
- b
- title: Connect to existing WiFi
- - wifi.sta.ssid
- s
- title: SSID
- - wifi.sta.pass
- s
- title: Password
type: password
- - wifi.sta.user
- s
- title: Username for WPA-PEAP mode
- - wifi.sta.anon_identity
- s
- title: Anonymous identity for WPA mode
- - wifi.sta.cert
- s
- title: Client certificate for WPA-TTLS mode
- - wifi.sta.key
- s
- title: Client key for WPA-TTLS mode
- - wifi.sta.ca_cert
- s
- title: CA certificate for WPA-enterprise mode
- - wifi.sta.ip
- s
- title: Static IP Address
- - wifi.sta.netmask
- s
- title: Static Netmask
- - wifi.sta.gw
- s
- title: Static Default Gateway
- - wifi.sta.nameserver
- s
- title: DNS Server
- - wifi.sta.dhcp_hostname
- s
- title: Host name to include in DHCP requests
- - wifi.ap
- o
- title: WiFi Access Point
- - wifi.ap.enable
- b
- true
- title: Enable
- - wifi.ap.ssid
- s
- Mongoose_??????
- title: SSID
- - wifi.ap.pass
- s
- Mongoose
- title: Password
type: password
- - wifi.ap.hidden
- b
- false
- title: Hide SSID
- - wifi.ap.channel
- i
- 6
- title: Channel
- - wifi.ap.max_connections
- i
- 10
- title: Max connections
- - wifi.ap.ip
- s
- 192.168.4.1
- title: IP address
- - wifi.ap.netmask
- s
- 255.255.255.0
- title: Network Mask
- - wifi.ap.gw
- s
- 192.168.4.1
- title: Default Gateway
- - wifi.ap.dhcp_start
- s
- 192.168.4.2
- title: DHCP Start Address
- - wifi.ap.dhcp_end
- s
- 192.168.4.100
- title: DHCP End Address
- - wifi.ap.trigger_on_gpio
- i
- -1
- title: Trigger AP on low GPIO
- - wifi.ap.disable_after
- i
- 0
- 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
- true
- title: Keep AP enabled when station is on
- - higrow
- o
- title: LilyGo HiGrow ESP32 Plant Sensor App Settings
- - higrow.deviceId
- s
- ""
- title: DeviceId
- - higrow.temperature
- d
- 0
- title: Temperature
- - higrow.humidity
- d
- 0
- title: Humidity
- - higrow.light
- i
- 0
- title: Light
- - higrow.moisture
- i
- 0
- title: Moisture
- - higrow.connected
- b
- false
- title: Connected
- - higrow.battery_calibration
- i
- 2360
- title: Battery ADC value at 4000mV
- - wifi.sta.enable
- false
- - wifi.sta.ssid
- ""
- - wifi.sta.pass
- ""
- - wifi.ap.enable
- false
- - device.id
- HiGrow_??????
- - bt.dev_name
- HiGrowBT_
build_vars:
ESP_IDF_EXTRA_COMPONENTS: ' bt'
ESP_IDF_SDKCONFIG_OPTS: |2-
CONFIG_BT_ENABLED=y CONFIG_BLUEDROID_ENABLED=y CONFIG_BTC_TASK_STACK_SIZE=6144 CONFIG_BLUEDROID_MEM_DEBUG= CONFIG_CLASSIC_BT_ENABLED= CONFIG_BT_DRAM_RELEASE=y CONFIG_GATTS_ENABLE=y CONFIG_GATTC_ENABLE=y CONFIG_BLE_SMP_ENABLE=y CONFIG_BT_STACK_NO_LOG= CONFIG_BT_ACL_CONNECTIONS=4 CONFIG_BTDM_CONTROLLER_RUN_CPU=0 CONFIG_SMP_ENABLE=y CONFIG_BT_RESERVE_DRAM=0x10000
CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=500
MGOS_HAVE_ADC: "1"
MGOS_HAVE_BT_COMMON: "1"
MGOS_HAVE_BT_SERVICE_CONFIG: "1"
MGOS_HAVE_CA_BUNDLE: "1"
MGOS_HAVE_DHT: "1"
MGOS_HAVE_MJS: "1"
MGOS_HAVE_RPC_COMMON: "1"
MGOS_HAVE_RPC_SERVICE_CONFIG: "1"
MGOS_HAVE_RPC_SERVICE_FS: "1"
MGOS_HAVE_RPC_UART: "1"
MGOS_HAVE_WIFI: "1"
MGOS_WIFI_ENABLE_AP_STA: "1"
cdefs:
MG_ENABLE_DNS_SERVER: "1"
MGOS_ENABLE_RPC_CHANNEL_HTTP: "1"
MGOS_ENABLE_RPC_CHANNEL_WS: "1"
MGOS_ENABLE_SYS_SERVICE: "1"
MGOS_HAVE_ADC: "1"
MGOS_HAVE_BT_COMMON: "1"
MGOS_HAVE_BT_SERVICE_CONFIG: "1"
MGOS_HAVE_CA_BUNDLE: "1"
MGOS_HAVE_DHT: "1"
MGOS_HAVE_MJS: "1"
MGOS_HAVE_RPC_COMMON: "1"
MGOS_HAVE_RPC_SERVICE_CONFIG: "1"
MGOS_HAVE_RPC_SERVICE_FS: "1"
MGOS_HAVE_RPC_UART: "1"
MGOS_HAVE_WIFI: "1"
MGOS_WIFI_ENABLE_AP_STA: "1"
tags:
- js
- hardware
- higrow
- esp32
- ble
- plant
- lilygo
libs_version: latest
modules_version: latest
mongoose_os_version: latest
manifest_version: 2017-05-18
libs_handled:
- name: adc
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/adc
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/adc/esp32/src/esp32_adc.c
- name: bt-common
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/mgos_bt.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/mgos_bt_gap.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt_gap.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt_gattc.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-common/src/esp32/esp32_bt_gatts.c
- name: bt-service-config
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-service-config
deps:
- bt-common
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/bt-service-config/src/esp32/esp32_bt_svc_config.c
- name: ca-bundle
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/ca-bundle
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/ca-bundle/src/mgos_ca_bundle.c
- name: dht
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/dht
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/dht/src/mgos_dht.c
- name: mjs
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/src/mos_mjs.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/modules/mjs_module/mjs.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/mjs/esp32/src/esp32_mjs.c
- name: rpc-common
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common
deps:
- http-server
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc_channel.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc_channel_http.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mg_rpc/mg_rpc_channel_ws.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-common/src/mgos_rpc.c
- name: rpc-service-config
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-config
deps:
- rpc-common
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-config/src/mgos_service_config.c
- name: rpc-service-fs
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-fs
deps:
- rpc-common
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-service-fs/src/mgos_service_filesystem.c
- name: rpc-uart
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-uart
deps:
- rpc-common
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/rpc-uart/src/mgos_rpc_channel_uart.c
- name: wifi
path: /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi
sources:
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/src/mgos_wifi.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/src/mjs_wifi.c
- /fwbuild-volumes/latest/apps/LilyGo-HiGrow-ESP32-Mongoose-OS-Firmware/esp32/build_contexts/build_ctx_913791226/libs/wifi/esp32/src/esp32_wifi.c

386
build/gen/sdkconfig Normal file
View File

@@ -0,0 +1,386 @@
#
# Automatically generated file; DO NOT EDIT.
# Espressif IoT Development Framework Configuration
#
#
# SDK tool configuration
#
CONFIG_TOOLPREFIX="xtensa-esp32-elf-"
CONFIG_PYTHON="python"
CONFIG_MAKE_WARN_UNDEFINED_VARIABLES=y
#
# Bootloader config
#
CONFIG_LOG_BOOTLOADER_LEVEL_NONE=
CONFIG_LOG_BOOTLOADER_LEVEL_ERROR=
CONFIG_LOG_BOOTLOADER_LEVEL_WARN=
CONFIG_LOG_BOOTLOADER_LEVEL_INFO=y
CONFIG_LOG_BOOTLOADER_LEVEL_DEBUG=
CONFIG_LOG_BOOTLOADER_LEVEL_VERBOSE=
CONFIG_LOG_BOOTLOADER_LEVEL=3
CONFIG_BOOTLOADER_VDDSDIO_BOOST=y
#
# Security features
#
CONFIG_SECURE_BOOT_ENABLED=
CONFIG_FLASH_ENCRYPTION_ENABLED=
#
# Serial flasher config
#
CONFIG_ESPTOOLPY_PORT="/dev/ttyUSB0"
CONFIG_ESPTOOLPY_BAUD_115200B=y
CONFIG_ESPTOOLPY_BAUD_230400B=
CONFIG_ESPTOOLPY_BAUD_921600B=
CONFIG_ESPTOOLPY_BAUD_2MB=
CONFIG_ESPTOOLPY_BAUD_OTHER=
CONFIG_ESPTOOLPY_BAUD_OTHER_VAL=115200
CONFIG_ESPTOOLPY_BAUD=115200
CONFIG_ESPTOOLPY_COMPRESSED=y
CONFIG_FLASHMODE_QIO=
CONFIG_FLASHMODE_QOUT=
CONFIG_FLASHMODE_DIO=y
CONFIG_FLASHMODE_DOUT=
CONFIG_ESPTOOLPY_FLASHMODE="dio"
CONFIG_ESPTOOLPY_FLASHFREQ_80M=
CONFIG_ESPTOOLPY_FLASHFREQ_40M=y
CONFIG_ESPTOOLPY_FLASHFREQ_26M=
CONFIG_ESPTOOLPY_FLASHFREQ_20M=
CONFIG_ESPTOOLPY_FLASHFREQ="40m"
CONFIG_ESPTOOLPY_FLASHSIZE_1MB=
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_FLASHSIZE_8MB=
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
CONFIG_ESPTOOLPY_FLASHSIZE_DETECT=y
CONFIG_ESPTOOLPY_BEFORE_RESET=y
CONFIG_ESPTOOLPY_BEFORE_NORESET=
CONFIG_ESPTOOLPY_BEFORE="default_reset"
CONFIG_ESPTOOLPY_AFTER_RESET=y
CONFIG_ESPTOOLPY_AFTER_NORESET=
CONFIG_ESPTOOLPY_AFTER="hard_reset"
CONFIG_MONITOR_BAUD_9600B=
CONFIG_MONITOR_BAUD_57600B=
CONFIG_MONITOR_BAUD_115200B=y
CONFIG_MONITOR_BAUD_230400B=
CONFIG_MONITOR_BAUD_921600B=
CONFIG_MONITOR_BAUD_2MB=
CONFIG_MONITOR_BAUD_OTHER=
CONFIG_MONITOR_BAUD_OTHER_VAL=115200
CONFIG_MONITOR_BAUD=115200
#
# Partition Table
#
CONFIG_PARTITION_TABLE_SINGLE_APP=
CONFIG_PARTITION_TABLE_TWO_OTA=
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="src/partitions_mgos.csv"
CONFIG_PARTITION_TABLE_CUSTOM_APP_BIN_OFFSET=0x10000
CONFIG_PARTITION_TABLE_FILENAME="src/partitions_mgos.csv"
CONFIG_APP_OFFSET=0x10000
#
# Compiler options
#
CONFIG_OPTIMIZATION_LEVEL_DEBUG=
CONFIG_OPTIMIZATION_LEVEL_RELEASE=y
CONFIG_OPTIMIZATION_ASSERTIONS_ENABLED=y
CONFIG_OPTIMIZATION_ASSERTIONS_SILENT=
CONFIG_OPTIMIZATION_ASSERTIONS_DISABLED=
CONFIG_CXX_EXCEPTIONS=
CONFIG_STACK_CHECK_NONE=y
CONFIG_STACK_CHECK_NORM=
CONFIG_STACK_CHECK_STRONG=
CONFIG_STACK_CHECK_ALL=
CONFIG_STACK_CHECK=
#
# Component config
#
#
# Application Level Tracing
#
CONFIG_ESP32_APPTRACE_DEST_TRAX=
CONFIG_ESP32_APPTRACE_DEST_NONE=y
CONFIG_ESP32_APPTRACE_ENABLE=
CONFIG_ESP32_APPTRACE_LOCK_ENABLE=y
#
# FreeRTOS SystemView Tracing
#
#
# ESP32-specific
#
CONFIG_ESP32_DEFAULT_CPU_FREQ_80=
CONFIG_ESP32_DEFAULT_CPU_FREQ_160=y
CONFIG_ESP32_DEFAULT_CPU_FREQ_240=
CONFIG_ESP32_DEFAULT_CPU_FREQ_MHZ=160
CONFIG_MEMMAP_SMP=y
CONFIG_SPIRAM_SUPPORT=
CONFIG_MEMMAP_TRACEMEM=
CONFIG_MEMMAP_TRACEMEM_TWOBANKS=
CONFIG_ESP32_TRAX=
CONFIG_TRACEMEM_RESERVE_DRAM=0x0
CONFIG_ESP32_ENABLE_COREDUMP_TO_FLASH=
CONFIG_ESP32_ENABLE_COREDUMP_TO_UART=y
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=
CONFIG_ESP32_ENABLE_COREDUMP=y
CONFIG_ESP32_CORE_DUMP_UART_DELAY=0
CONFIG_ESP32_CORE_DUMP_LOG_LEVEL=1
CONFIG_TWO_UNIVERSAL_MAC_ADDRESS=
CONFIG_FOUR_UNIVERSAL_MAC_ADDRESS=y
CONFIG_NUMBER_OF_UNIVERSAL_MAC_ADDRESS=4
CONFIG_SYSTEM_EVENT_QUEUE_SIZE=32
CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE=3072
CONFIG_MAIN_TASK_STACK_SIZE=3584
CONFIG_IPC_TASK_STACK_SIZE=1024
CONFIG_TIMER_TASK_STACK_SIZE=3584
CONFIG_NEWLIB_STDOUT_LINE_ENDING_CRLF=y
CONFIG_NEWLIB_STDOUT_LINE_ENDING_LF=
CONFIG_NEWLIB_STDOUT_LINE_ENDING_CR=
CONFIG_NEWLIB_STDIN_LINE_ENDING_CRLF=
CONFIG_NEWLIB_STDIN_LINE_ENDING_LF=
CONFIG_NEWLIB_STDIN_LINE_ENDING_CR=y
CONFIG_NEWLIB_NANO_FORMAT=
CONFIG_CONSOLE_UART_DEFAULT=y
CONFIG_CONSOLE_UART_CUSTOM=
CONFIG_CONSOLE_UART_NONE=
CONFIG_CONSOLE_UART_NUM=0
CONFIG_CONSOLE_UART_BAUDRATE=115200
CONFIG_ULP_COPROC_ENABLED=
CONFIG_ULP_COPROC_RESERVE_MEM=0
CONFIG_ESP32_PANIC_PRINT_HALT=
CONFIG_ESP32_PANIC_PRINT_REBOOT=y
CONFIG_ESP32_PANIC_SILENT_REBOOT=
CONFIG_ESP32_PANIC_GDBSTUB=
CONFIG_ESP32_DEBUG_OCDAWARE=y
CONFIG_INT_WDT=y
CONFIG_INT_WDT_TIMEOUT_MS=300
CONFIG_TASK_WDT=y
CONFIG_TASK_WDT_PANIC=y
CONFIG_TASK_WDT_TIMEOUT_S=5
CONFIG_TASK_WDT_CHECK_IDLE_TASK_CPU0=y
CONFIG_BROWNOUT_DET=y
CONFIG_BROWNOUT_DET_LVL_SEL_0=y
CONFIG_BROWNOUT_DET_LVL_SEL_1=
CONFIG_BROWNOUT_DET_LVL_SEL_2=
CONFIG_BROWNOUT_DET_LVL_SEL_3=
CONFIG_BROWNOUT_DET_LVL_SEL_4=
CONFIG_BROWNOUT_DET_LVL_SEL_5=
CONFIG_BROWNOUT_DET_LVL_SEL_6=
CONFIG_BROWNOUT_DET_LVL_SEL_7=
CONFIG_BROWNOUT_DET_LVL=0
CONFIG_ESP32_TIME_SYSCALL_USE_RTC_FRC1=y
CONFIG_ESP32_TIME_SYSCALL_USE_RTC=
CONFIG_ESP32_TIME_SYSCALL_USE_FRC1=
CONFIG_ESP32_TIME_SYSCALL_USE_NONE=
CONFIG_ESP32_RTC_CLOCK_SOURCE_INTERNAL_RC=y
CONFIG_ESP32_RTC_CLOCK_SOURCE_EXTERNAL_CRYSTAL=
CONFIG_ESP32_RTC_CLK_CAL_CYCLES=1024
CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=500
CONFIG_ESP32_XTAL_FREQ_40=
CONFIG_ESP32_XTAL_FREQ_26=
CONFIG_ESP32_XTAL_FREQ_AUTO=y
CONFIG_ESP32_XTAL_FREQ=0
CONFIG_DISABLE_BASIC_ROM_CONSOLE=
CONFIG_ESP_TIMER_PROFILING=
CONFIG_COMPATIBLE_PRE_V2_1_BOOTLOADERS=
#
# Wi-Fi
#
CONFIG_SW_COEXIST_ENABLE=
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=10
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=0
CONFIG_ESP32_WIFI_STATIC_TX_BUFFER=
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y
CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=1
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=32
CONFIG_ESP32_WIFI_AMPDU_TX_ENABLED=y
CONFIG_ESP32_WIFI_TX_BA_WIN=6
CONFIG_ESP32_WIFI_AMPDU_RX_ENABLED=y
CONFIG_ESP32_WIFI_RX_BA_WIN=6
CONFIG_ESP32_WIFI_NVS_ENABLED=y
#
# PHY
#
CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION=
CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20
CONFIG_ESP32_PHY_MAX_TX_POWER=20
#
# Power Management
#
CONFIG_PM_ENABLE=
#
# Ethernet
#
CONFIG_DMA_RX_BUF_NUM=10
CONFIG_DMA_TX_BUF_NUM=10
CONFIG_EMAC_L2_TO_L3_RX_BUF_MODE=
CONFIG_EMAC_TASK_PRIORITY=20
#
# FreeRTOS
#
CONFIG_FREERTOS_UNICORE=y
CONFIG_FREERTOS_CORETIMER_0=y
CONFIG_FREERTOS_CORETIMER_1=
CONFIG_FREERTOS_HZ=100
CONFIG_FREERTOS_ASSERT_ON_UNTESTED_FUNCTION=y
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE=y
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_PTRVAL=
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
CONFIG_FREERTOS_INTERRUPT_BACKTRACE=y
CONFIG_FREERTOS_THREAD_LOCAL_STORAGE_POINTERS=1
CONFIG_FREERTOS_ASSERT_FAIL_ABORT=y
CONFIG_FREERTOS_ASSERT_FAIL_PRINT_CONTINUE=
CONFIG_FREERTOS_ASSERT_DISABLE=
CONFIG_FREERTOS_IDLE_TASK_STACKSIZE=1024
CONFIG_FREERTOS_ISR_STACKSIZE=1536
CONFIG_FREERTOS_LEGACY_HOOKS=
CONFIG_FREERTOS_MAX_TASK_NAME_LEN=16
CONFIG_SUPPORT_STATIC_ALLOCATION=
CONFIG_TIMER_TASK_PRIORITY=1
CONFIG_TIMER_TASK_STACK_DEPTH=3072
CONFIG_TIMER_QUEUE_LENGTH=10
CONFIG_FREERTOS_QUEUE_REGISTRY_SIZE=0
CONFIG_FREERTOS_USE_TRACE_FACILITY=
CONFIG_FREERTOS_GENERATE_RUN_TIME_STATS=
CONFIG_FREERTOS_DEBUG_INTERNALS=
#
# Heap memory debugging
#
CONFIG_HEAP_POISONING_DISABLED=y
CONFIG_HEAP_POISONING_LIGHT=
CONFIG_HEAP_POISONING_COMPREHENSIVE=
CONFIG_HEAP_TRACING=
#
# Log output
#
CONFIG_LOG_DEFAULT_LEVEL_NONE=
CONFIG_LOG_DEFAULT_LEVEL_ERROR=
CONFIG_LOG_DEFAULT_LEVEL_WARN=
CONFIG_LOG_DEFAULT_LEVEL_INFO=y
CONFIG_LOG_DEFAULT_LEVEL_DEBUG=
CONFIG_LOG_DEFAULT_LEVEL_VERBOSE=
CONFIG_LOG_DEFAULT_LEVEL=3
CONFIG_LOG_COLORS=y
#
# LWIP
#
CONFIG_L2_TO_L3_COPY=
CONFIG_LWIP_IRAM_OPTIMIZATION=
CONFIG_LWIP_MAX_SOCKETS=10
CONFIG_LWIP_SO_REUSE=y
CONFIG_LWIP_SO_REUSE_RXTOALL=y
CONFIG_LWIP_SO_RCVBUF=
CONFIG_LWIP_DHCP_MAX_NTP_SERVERS=1
CONFIG_LWIP_IP_FRAG=
CONFIG_LWIP_IP_REASSEMBLY=
CONFIG_LWIP_STATS=
CONFIG_LWIP_ETHARP_TRUST_IP_MAC=y
CONFIG_TCPIP_RECVMBOX_SIZE=32
CONFIG_LWIP_DHCP_DOES_ARP_CHECK=
#
# DHCP server
#
CONFIG_LWIP_DHCPS_LEASE_UNIT=60
CONFIG_LWIP_DHCPS_MAX_STATION_NUM=8
CONFIG_LWIP_AUTOIP=
CONFIG_LWIP_NETIF_LOOPBACK=y
CONFIG_LWIP_LOOPBACK_MAX_PBUFS=8
#
# TCP
#
CONFIG_LWIP_MAX_ACTIVE_TCP=16
CONFIG_LWIP_MAX_LISTENING_TCP=16
CONFIG_TCP_MAXRTX=12
CONFIG_TCP_SYNMAXRTX=6
CONFIG_TCP_MSS=1436
CONFIG_TCP_MSL=60000
CONFIG_TCP_SND_BUF_DEFAULT=5744
CONFIG_TCP_WND_DEFAULT=5744
CONFIG_TCP_RECVMBOX_SIZE=6
CONFIG_TCP_QUEUE_OOSEQ=y
CONFIG_TCP_OVERSIZE_MSS=y
CONFIG_TCP_OVERSIZE_QUARTER_MSS=
CONFIG_TCP_OVERSIZE_DISABLE=
#
# UDP
#
CONFIG_LWIP_MAX_UDP_PCBS=16
CONFIG_UDP_RECVMBOX_SIZE=6
CONFIG_TCPIP_TASK_STACK_SIZE=3072
CONFIG_PPP_SUPPORT=
#
# ICMP
#
CONFIG_LWIP_MULTICAST_PING=
CONFIG_LWIP_BROADCAST_PING=
#
# LWIP RAW API
#
CONFIG_LWIP_MAX_RAW_PCBS=16
#
# PThreads
#
CONFIG_ESP32_PTHREAD_TASK_PRIO_DEFAULT=5
CONFIG_ESP32_PTHREAD_TASK_STACK_SIZE_DEFAULT=3072
#
# SPI Flash driver
#
CONFIG_SPI_FLASH_VERIFY_WRITE=
CONFIG_SPI_FLASH_ENABLE_COUNTERS=
CONFIG_SPI_FLASH_ROM_DRIVER_PATCH=y
CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ABORTS=y
CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_FAILS=
CONFIG_SPI_FLASH_WRITING_DANGEROUS_REGIONS_ALLOWED=
#
# tcpip adapter
#
CONFIG_IP_LOST_TIMER_INTERVAL=120
#
# Bluetooth
#
CONFIG_BT_ENABLED=y
CONFIG_BTDM_CONTROLLER_PINNED_TO_CORE=0
CONFIG_BTDM_CONTROLLER_HCI_MODE_VHCI=y
CONFIG_BTDM_CONTROLLER_HCI_MODE_UART_H4=
CONFIG_BLUEDROID_ENABLED=y
CONFIG_BLUEDROID_PINNED_TO_CORE=0
CONFIG_BTC_TASK_STACK_SIZE=6144
CONFIG_BLUEDROID_MEM_DEBUG=
CONFIG_CLASSIC_BT_ENABLED=
CONFIG_GATTS_ENABLE=y
CONFIG_GATTC_ENABLE=y
CONFIG_BLE_SMP_ENABLE=y
CONFIG_BT_STACK_NO_LOG=
CONFIG_BT_ACL_CONNECTIONS=4
CONFIG_BT_ALLOCATION_FROM_SPIRAM_FIRST=
CONFIG_BT_BLE_DYNAMIC_ENV_MEMORY=
CONFIG_SMP_ENABLE=y
CONFIG_BT_RESERVE_DRAM=0x10000

71
build/gen/sdkconfig.old Normal file
View File

@@ -0,0 +1,71 @@
# Overrides applied over defconfig
# Additional changes can be made via ESP_IDF_SDKCONFIG_OPTS
CONFIG_ESPTOOLPY_FLASHSIZE_2MB=
CONFIG_ESPTOOLPY_FLASHSIZE_4MB=y
CONFIG_ESPTOOLPY_FLASHSIZE="4MB"
CONFIG_PARTITION_TABLE_SINGLE_APP=
CONFIG_PARTITION_TABLE_CUSTOM=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="src/partitions_mgos.csv"
CONFIG_PARTITION_TABLE_FILENAME="src/partitions_mgos.csv"
CONFIG_OPTIMIZATION_LEVEL_DEBUG=
CONFIG_OPTIMIZATION_LEVEL_RELEASE=y
CONFIG_ESP32_ENABLE_COREDUMP_TO_UART=y
CONFIG_ESP32_ENABLE_COREDUMP_TO_NONE=
CONFIG_ESP32_ENABLE_COREDUMP=y
CONFIG_ESP32_CORE_DUMP_UART_DELAY=0
CONFIG_ESP32_CORE_DUMP_LOG_LEVEL=1
CONFIG_SYSTEM_EVENT_TASK_STACK_SIZE=3072
CONFIG_TASK_WDT_PANIC=y
CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=0
CONFIG_WIFI_ENABLED=y
CONFIG_SW_COEXIST_ENABLE=
CONFIG_ESP32_WIFI_STATIC_RX_BUFFER_NUM=10
CONFIG_ESP32_WIFI_DYNAMIC_RX_BUFFER_NUM=0
CONFIG_ESP32_WIFI_STATIC_TX_BUFFER=
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER=y
CONFIG_ESP32_WIFI_TX_BUFFER_TYPE=1
CONFIG_ESP32_WIFI_DYNAMIC_TX_BUFFER_NUM=32
CONFIG_ESP32_WIFI_AMPDU_ENABLED=y
CONFIG_ESP32_WIFI_TX_BA_WIN=6
CONFIG_ESP32_WIFI_RX_BA_WIN=6
CONFIG_ESP32_WIFI_NVS_ENABLED=y
CONFIG_ESP32_PHY_CALIBRATION_AND_DATA_STORAGE=y
CONFIG_ESP32_PHY_INIT_DATA_IN_PARTITION=
CONFIG_ESP32_PHY_MAX_WIFI_TX_POWER=20
CONFIG_ESP32_PHY_MAX_TX_POWER=20
CONFIG_DMA_RX_BUF_NUM=10
CONFIG_DMA_TX_BUF_NUM=10
CONFIG_EMAC_L2_TO_L3_RX_BUF_MODE=
CONFIG_EMAC_TASK_PRIORITY=20
CONFIG_FREERTOS_UNICORE=y
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_NONE=y
CONFIG_FREERTOS_CHECK_STACKOVERFLOW_CANARY=
CONFIG_FREERTOS_WATCHPOINT_END_OF_STACK=y
CONFIG_FREERTOS_BREAK_ON_SCHEDULER_START_JTAG=y
CONFIG_TIMER_TASK_STACK_DEPTH=3072
CONFIG_LWIP_DHCP_DOES_ARP_CHECK=
CONFIG_TCPIP_TASK_STACK_SIZE=3072
CONFIG_ESP32_XTAL_FREQ_40=
CONFIG_ESP32_XTAL_FREQ_26=
CONFIG_ESP32_XTAL_FREQ_AUTO=y
CONFIG_ESP32_XTAL_FREQ=0
CONFIG_BT_ENABLED=y
CONFIG_BLUEDROID_ENABLED=y
CONFIG_BTC_TASK_STACK_SIZE=6144
CONFIG_BLUEDROID_MEM_DEBUG=
CONFIG_CLASSIC_BT_ENABLED=
CONFIG_BT_DRAM_RELEASE=y
CONFIG_GATTS_ENABLE=y
CONFIG_GATTC_ENABLE=y
CONFIG_BLE_SMP_ENABLE=y
CONFIG_BT_STACK_NO_LOG=
CONFIG_BT_ACL_CONNECTIONS=4
CONFIG_BTDM_CONTROLLER_RUN_CPU=0
CONFIG_SMP_ENABLE=y
CONFIG_BT_RESERVE_DRAM=0x10000
CONFIG_ESP32_DEEP_SLEEP_WAKEUP_DELAY=500