Skip to content

Commit

Permalink
add update over http
Browse files Browse the repository at this point in the history
  • Loading branch information
goodspeed1986 committed Jun 24, 2021
1 parent c90bf1f commit 206ef9b
Show file tree
Hide file tree
Showing 27 changed files with 2,418 additions and 1,922 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"mos.port": "COM5",
"mos.port": "/dev/cu.usbserial-0001",
"mos.board": "ESP32"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
{cmd:0, st_n:5, sp_p:[106,25,106,47,31.8,12], st_t:[900,1800,40,9600,49,10], ts:123456789, id:"12345678"}, где cmd:0 - параметр для записи параметров сварки, sp_p - уставки давлений каждого этапа, st_n - количество этапов сварки, st_t - время длительности каждого этапа в секундах, ts - время начала сварки UTC, id - уникальный ID сварки.
{cmd:1, state:1}, cmd:1 - параметр для перехода на следующий этап, state:1 - этап сварки
{cmd:2, sensors: {p_out_min:0, p_out_max:16, p_in_min:4, p_in_max:20}}, cmd:2 - параметры настройки датчиков
{cmd:3, update:1}, cmd:3 - параметр для включения wifi для обновления прошивки
{cmd:3, update:1}, cmd:3 - параметр для включения wifi для обновления прошивки. После установки данного параметра контроллер перезагрузится. Для обновления прошивки необходимо подключиться к точке доступа update_?????? и выполнить http_post запрос, пример curl -i -F filedata=@./build/fw.zip http://192.168.4.1/update. Команда для записи прошивки в основную память curl -v -X POST http://192.168.4.1/update/commit

Функция **NOTIFY** подписаться на уведомления от устройства.
- Возвращает текущий этап сварки
Expand Down
2 changes: 1 addition & 1 deletion build/build.local.log
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
Connecting to https://build.mongoose-os.com, user test
Uploading sources (8797 bytes)
Uploading sources (9924 bytes)
2,649 changes: 1,345 additions & 1,304 deletions build/build.log

Large diffs are not rendered by default.

Binary file modified build/fw.zip
Binary file not shown.
Binary file modified build/fw/volzhanin_esp32-esp32-1.0.zip
Binary file not shown.
Binary file modified build/fw/volzhanin_esp32-esp32-last.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion build/gen/build_ctx.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
build_ctx_565978980
build_ctx_614354982
4 changes: 2 additions & 2 deletions build/gen/build_info.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Auto-generated, do not edit. */
const char *build_id = "20210420-181655";
const char *build_timestamp = "2021-04-20T18:16:55Z";
const char *build_id = "20210624-091402";
const char *build_timestamp = "2021-06-24T09:14:02Z";
const char *build_version = "1.0";
4 changes: 2 additions & 2 deletions build/gen/build_info.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"build_id": "20210420-181655",
"build_timestamp": "2021-04-20T18:16:55Z",
"build_id": "20210624-091402",
"build_timestamp": "2021-06-24T09:14:02Z",
"build_version": "1.0"
}
2 changes: 1 addition & 1 deletion build/gen/build_stat.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"arch": "esp32",
"platform": "esp32",
"app_name": "volzhanin_esp32",
"build_time_ms": 74426
"build_time_ms": 70276
}
6 changes: 3 additions & 3 deletions build/gen/mg_build_info.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Auto-generated, do not edit. */
const char *mg_build_id = "20210420-181653/2.19.1-gd52032f";
const char *mg_build_timestamp = "2021-04-20T18:16:53Z";
const char *mg_build_version = "2.19.1";
const char *mg_build_id = "20210624-091402/2.19.1-33-g0d4c0082-master";
const char *mg_build_timestamp = "2021-06-24T09:14:02Z";
const char *mg_build_version = "202106161704";
145 changes: 94 additions & 51 deletions build/gen/mgos_config.c

Large diffs are not rendered by default.

108 changes: 86 additions & 22 deletions build/gen/mgos_config.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* clang-format off */
/*
* Generated file - do not edit.
* Command: /mongoose-os/tools/mgos_gen_config.py --c_name=mgos_config --c_global_name=mgos_sys_config --dest_dir=/data/fwbuild-volumes/2.19.1/apps/volzhanin_esp32/esp32/build_contexts/build_ctx_565978980/build/gen/ /mongoose-os/src/mgos_debug_udp_config.yaml /mongoose-os/platforms/esp32/src/esp32_sys_config.yaml /data/fwbuild-volumes/2.19.1/apps/volzhanin_esp32/esp32/build_contexts/build_ctx_565978980/build/gen/mos_conf_schema.yml
* Command: /mongoose-os/tools/mgos_gen_config.py --c_name=mgos_config --c_global_name=mgos_sys_config --dest_dir=/data/fwbuild-volumes/latest/apps/volzhanin_esp32/esp32/build_contexts/build_ctx_614354982/build/gen/ /mongoose-os/src/mgos_debug_udp_config.yaml /mongoose-os/platforms/esp32/src/esp32_sys_config.yaml /data/fwbuild-volumes/latest/apps/volzhanin_esp32/esp32/build_contexts/build_ctx_614354982/build/gen/mos_conf_schema.yml
*/

#pragma once
Expand Down Expand Up @@ -241,6 +241,7 @@ struct mgos_config_http {
const char * hidden_files;
const char * auth_domain;
const char * auth_file;
int auth_algo;
const char * extra_headers;
};
const struct mgos_conf_entry *mgos_config_http_get_schema(void);
Expand Down Expand Up @@ -330,6 +331,7 @@ struct mgos_config_rpc {
const char * acl_file;
const char * auth_domain;
const char * auth_file;
int auth_algo;
struct mgos_config_rpc_uart uart;
};
const struct mgos_conf_entry *mgos_config_rpc_get_schema(void);
Expand Down Expand Up @@ -395,6 +397,7 @@ struct mgos_config_wifi_sta {
int enable;
const char * ssid;
const char * pass;
const char * bssid;
const char * user;
const char * anon_identity;
const char * cert;
Expand Down Expand Up @@ -473,10 +476,11 @@ struct mgos_config_wifi {
struct mgos_config_wifi_sta sta;
struct mgos_config_wifi_sta sta1;
struct mgos_config_wifi_sta sta2;
int sta_cfg_idx;
int sta_rssi_thr;
int sta_connect_timeout;
int sta_roam_rssi_thr;
int sta_roam_interval;
int sta_ps_mode;
int sta_all_chan_scan;
};
const struct mgos_conf_entry *mgos_config_wifi_get_schema(void);
void mgos_config_wifi_set_defaults(struct mgos_config_wifi *cfg);
Expand Down Expand Up @@ -1327,6 +1331,16 @@ static inline const char * mgos_sys_config_get_default_http_auth_file(void) { re
void mgos_config_set_http_auth_file(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_http_auth_file(const char * v) { mgos_config_set_http_auth_file(&mgos_sys_config, v); }

/* http.auth_algo */
#define MGOS_CONFIG_HAVE_HTTP_AUTH_ALGO
#define MGOS_SYS_CONFIG_HAVE_HTTP_AUTH_ALGO
int mgos_config_get_http_auth_algo(const struct mgos_config *cfg);
int mgos_config_get_default_http_auth_algo(void);
static inline int mgos_sys_config_get_http_auth_algo(void) { return mgos_config_get_http_auth_algo(&mgos_sys_config); }
static inline int mgos_sys_config_get_default_http_auth_algo(void) { return mgos_config_get_default_http_auth_algo(); }
void mgos_config_set_http_auth_algo(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_http_auth_algo(int v) { mgos_config_set_http_auth_algo(&mgos_sys_config, v); }

/* http.extra_headers */
#define MGOS_CONFIG_HAVE_HTTP_EXTRA_HEADERS
#define MGOS_SYS_CONFIG_HAVE_HTTP_EXTRA_HEADERS
Expand Down Expand Up @@ -1529,6 +1543,16 @@ static inline const char * mgos_sys_config_get_default_rpc_auth_file(void) { ret
void mgos_config_set_rpc_auth_file(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_rpc_auth_file(const char * v) { mgos_config_set_rpc_auth_file(&mgos_sys_config, v); }

/* rpc.auth_algo */
#define MGOS_CONFIG_HAVE_RPC_AUTH_ALGO
#define MGOS_SYS_CONFIG_HAVE_RPC_AUTH_ALGO
int mgos_config_get_rpc_auth_algo(const struct mgos_config *cfg);
int mgos_config_get_default_rpc_auth_algo(void);
static inline int mgos_sys_config_get_rpc_auth_algo(void) { return mgos_config_get_rpc_auth_algo(&mgos_sys_config); }
static inline int mgos_sys_config_get_default_rpc_auth_algo(void) { return mgos_config_get_default_rpc_auth_algo(); }
void mgos_config_set_rpc_auth_algo(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_rpc_auth_algo(int v) { mgos_config_set_rpc_auth_algo(&mgos_sys_config, v); }

/* rpc.uart */
#define MGOS_CONFIG_HAVE_RPC_UART
#define MGOS_SYS_CONFIG_HAVE_RPC_UART
Expand Down Expand Up @@ -1793,6 +1817,16 @@ static inline const char * mgos_sys_config_get_default_wifi_sta_pass(void) { ret
void mgos_config_set_wifi_sta_pass(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_wifi_sta_pass(const char * v) { mgos_config_set_wifi_sta_pass(&mgos_sys_config, v); }

/* wifi.sta.bssid */
#define MGOS_CONFIG_HAVE_WIFI_STA_BSSID
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_BSSID
const char * mgos_config_get_wifi_sta_bssid(const struct mgos_config *cfg);
const char * mgos_config_get_default_wifi_sta_bssid(void);
static inline const char * mgos_sys_config_get_wifi_sta_bssid(void) { return mgos_config_get_wifi_sta_bssid(&mgos_sys_config); }
static inline const char * mgos_sys_config_get_default_wifi_sta_bssid(void) { return mgos_config_get_default_wifi_sta_bssid(); }
void mgos_config_set_wifi_sta_bssid(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_wifi_sta_bssid(const char * v) { mgos_config_set_wifi_sta_bssid(&mgos_sys_config, v); }

/* wifi.sta.user */
#define MGOS_CONFIG_HAVE_WIFI_STA_USER
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_USER
Expand Down Expand Up @@ -1949,6 +1983,16 @@ static inline const char * mgos_sys_config_get_default_wifi_sta1_pass(void) { re
void mgos_config_set_wifi_sta1_pass(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_wifi_sta1_pass(const char * v) { mgos_config_set_wifi_sta1_pass(&mgos_sys_config, v); }

/* wifi.sta1.bssid */
#define MGOS_CONFIG_HAVE_WIFI_STA1_BSSID
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA1_BSSID
const char * mgos_config_get_wifi_sta1_bssid(const struct mgos_config *cfg);
const char * mgos_config_get_default_wifi_sta1_bssid(void);
static inline const char * mgos_sys_config_get_wifi_sta1_bssid(void) { return mgos_config_get_wifi_sta1_bssid(&mgos_sys_config); }
static inline const char * mgos_sys_config_get_default_wifi_sta1_bssid(void) { return mgos_config_get_default_wifi_sta1_bssid(); }
void mgos_config_set_wifi_sta1_bssid(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_wifi_sta1_bssid(const char * v) { mgos_config_set_wifi_sta1_bssid(&mgos_sys_config, v); }

/* wifi.sta1.user */
#define MGOS_CONFIG_HAVE_WIFI_STA1_USER
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA1_USER
Expand Down Expand Up @@ -2105,6 +2149,16 @@ static inline const char * mgos_sys_config_get_default_wifi_sta2_pass(void) { re
void mgos_config_set_wifi_sta2_pass(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_wifi_sta2_pass(const char * v) { mgos_config_set_wifi_sta2_pass(&mgos_sys_config, v); }

/* wifi.sta2.bssid */
#define MGOS_CONFIG_HAVE_WIFI_STA2_BSSID
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA2_BSSID
const char * mgos_config_get_wifi_sta2_bssid(const struct mgos_config *cfg);
const char * mgos_config_get_default_wifi_sta2_bssid(void);
static inline const char * mgos_sys_config_get_wifi_sta2_bssid(void) { return mgos_config_get_wifi_sta2_bssid(&mgos_sys_config); }
static inline const char * mgos_sys_config_get_default_wifi_sta2_bssid(void) { return mgos_config_get_default_wifi_sta2_bssid(); }
void mgos_config_set_wifi_sta2_bssid(struct mgos_config *cfg, const char * v);
static inline void mgos_sys_config_set_wifi_sta2_bssid(const char * v) { mgos_config_set_wifi_sta2_bssid(&mgos_sys_config, v); }

/* wifi.sta2.user */
#define MGOS_CONFIG_HAVE_WIFI_STA2_USER
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA2_USER
Expand Down Expand Up @@ -2225,15 +2279,15 @@ static inline int mgos_sys_config_get_default_wifi_sta2_listen_interval_ms(void)
void mgos_config_set_wifi_sta2_listen_interval_ms(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta2_listen_interval_ms(int v) { mgos_config_set_wifi_sta2_listen_interval_ms(&mgos_sys_config, v); }

/* wifi.sta_cfg_idx */
#define MGOS_CONFIG_HAVE_WIFI_STA_CFG_IDX
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_CFG_IDX
int mgos_config_get_wifi_sta_cfg_idx(const struct mgos_config *cfg);
int mgos_config_get_default_wifi_sta_cfg_idx(void);
static inline int mgos_sys_config_get_wifi_sta_cfg_idx(void) { return mgos_config_get_wifi_sta_cfg_idx(&mgos_sys_config); }
static inline int mgos_sys_config_get_default_wifi_sta_cfg_idx(void) { return mgos_config_get_default_wifi_sta_cfg_idx(); }
void mgos_config_set_wifi_sta_cfg_idx(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta_cfg_idx(int v) { mgos_config_set_wifi_sta_cfg_idx(&mgos_sys_config, v); }
/* wifi.sta_rssi_thr */
#define MGOS_CONFIG_HAVE_WIFI_STA_RSSI_THR
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_RSSI_THR
int mgos_config_get_wifi_sta_rssi_thr(const struct mgos_config *cfg);
int mgos_config_get_default_wifi_sta_rssi_thr(void);
static inline int mgos_sys_config_get_wifi_sta_rssi_thr(void) { return mgos_config_get_wifi_sta_rssi_thr(&mgos_sys_config); }
static inline int mgos_sys_config_get_default_wifi_sta_rssi_thr(void) { return mgos_config_get_default_wifi_sta_rssi_thr(); }
void mgos_config_set_wifi_sta_rssi_thr(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta_rssi_thr(int v) { mgos_config_set_wifi_sta_rssi_thr(&mgos_sys_config, v); }

/* wifi.sta_connect_timeout */
#define MGOS_CONFIG_HAVE_WIFI_STA_CONNECT_TIMEOUT
Expand All @@ -2245,6 +2299,26 @@ static inline int mgos_sys_config_get_default_wifi_sta_connect_timeout(void) { r
void mgos_config_set_wifi_sta_connect_timeout(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta_connect_timeout(int v) { mgos_config_set_wifi_sta_connect_timeout(&mgos_sys_config, v); }

/* wifi.sta_roam_rssi_thr */
#define MGOS_CONFIG_HAVE_WIFI_STA_ROAM_RSSI_THR
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_ROAM_RSSI_THR
int mgos_config_get_wifi_sta_roam_rssi_thr(const struct mgos_config *cfg);
int mgos_config_get_default_wifi_sta_roam_rssi_thr(void);
static inline int mgos_sys_config_get_wifi_sta_roam_rssi_thr(void) { return mgos_config_get_wifi_sta_roam_rssi_thr(&mgos_sys_config); }
static inline int mgos_sys_config_get_default_wifi_sta_roam_rssi_thr(void) { return mgos_config_get_default_wifi_sta_roam_rssi_thr(); }
void mgos_config_set_wifi_sta_roam_rssi_thr(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta_roam_rssi_thr(int v) { mgos_config_set_wifi_sta_roam_rssi_thr(&mgos_sys_config, v); }

/* wifi.sta_roam_interval */
#define MGOS_CONFIG_HAVE_WIFI_STA_ROAM_INTERVAL
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_ROAM_INTERVAL
int mgos_config_get_wifi_sta_roam_interval(const struct mgos_config *cfg);
int mgos_config_get_default_wifi_sta_roam_interval(void);
static inline int mgos_sys_config_get_wifi_sta_roam_interval(void) { return mgos_config_get_wifi_sta_roam_interval(&mgos_sys_config); }
static inline int mgos_sys_config_get_default_wifi_sta_roam_interval(void) { return mgos_config_get_default_wifi_sta_roam_interval(); }
void mgos_config_set_wifi_sta_roam_interval(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta_roam_interval(int v) { mgos_config_set_wifi_sta_roam_interval(&mgos_sys_config, v); }

/* wifi.sta_ps_mode */
#define MGOS_CONFIG_HAVE_WIFI_STA_PS_MODE
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_PS_MODE
Expand All @@ -2255,16 +2329,6 @@ static inline int mgos_sys_config_get_default_wifi_sta_ps_mode(void) { return mg
void mgos_config_set_wifi_sta_ps_mode(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta_ps_mode(int v) { mgos_config_set_wifi_sta_ps_mode(&mgos_sys_config, v); }

/* wifi.sta_all_chan_scan */
#define MGOS_CONFIG_HAVE_WIFI_STA_ALL_CHAN_SCAN
#define MGOS_SYS_CONFIG_HAVE_WIFI_STA_ALL_CHAN_SCAN
int mgos_config_get_wifi_sta_all_chan_scan(const struct mgos_config *cfg);
int mgos_config_get_default_wifi_sta_all_chan_scan(void);
static inline int mgos_sys_config_get_wifi_sta_all_chan_scan(void) { return mgos_config_get_wifi_sta_all_chan_scan(&mgos_sys_config); }
static inline int mgos_sys_config_get_default_wifi_sta_all_chan_scan(void) { return mgos_config_get_default_wifi_sta_all_chan_scan(); }
void mgos_config_set_wifi_sta_all_chan_scan(struct mgos_config *cfg, int v);
static inline void mgos_sys_config_set_wifi_sta_all_chan_scan(int v) { mgos_config_set_wifi_sta_all_chan_scan(&mgos_sys_config, v); }

/* board */
#define MGOS_CONFIG_HAVE_BOARD
#define MGOS_SYS_CONFIG_HAVE_BOARD
Expand Down
10 changes: 8 additions & 2 deletions build/gen/mgos_config_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
["http.hidden_files", "s", {"title": "Hidden file pattern"}],
["http.auth_domain", "s", {"title": "Enable authentication of all HTTP requests"}],
["http.auth_file", "s", {"title": "Password file to use for auth"}],
["http.auth_algo", "i", {"title": "Password file hashing algorithm: 0 - MD5, 1 - SHA256"}],
["http.extra_headers", "s", {"title": "Extra headers to send with every file served"}],
["update", "o", {"title": "Firmware updater"}],
["update.timeout", "i", {"title": "Update will be aborted if it does not finish within this time"}],
Expand All @@ -83,6 +84,7 @@
["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.auth_algo", "i", {"title": "Password file hashing algorithm: 0 - MD5, 1 - SHA256"}],
["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"}],
Expand Down Expand Up @@ -111,6 +113,7 @@
["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.bssid", "s", {"title": "Specific AP to connect to"}],
["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"}],
Expand All @@ -127,6 +130,7 @@
["wifi.sta1.enable", "b", {"title": "Connect to existing WiFi"}],
["wifi.sta1.ssid", "s", {"title": "SSID"}],
["wifi.sta1.pass", "s", {"title": "Password", "type": "password"}],
["wifi.sta1.bssid", "s", {"title": "Specific AP to connect to"}],
["wifi.sta1.user", "s", {"title": "Username for WPA-PEAP mode"}],
["wifi.sta1.anon_identity", "s", {"title": "Anonymous identity for WPA mode"}],
["wifi.sta1.cert", "s", {"title": "Client certificate for WPA-TTLS mode"}],
Expand All @@ -143,6 +147,7 @@
["wifi.sta2.enable", "b", {"title": "Connect to existing WiFi"}],
["wifi.sta2.ssid", "s", {"title": "SSID"}],
["wifi.sta2.pass", "s", {"title": "Password", "type": "password"}],
["wifi.sta2.bssid", "s", {"title": "Specific AP to connect to"}],
["wifi.sta2.user", "s", {"title": "Username for WPA-PEAP mode"}],
["wifi.sta2.anon_identity", "s", {"title": "Anonymous identity for WPA mode"}],
["wifi.sta2.cert", "s", {"title": "Client certificate for WPA-TTLS mode"}],
Expand All @@ -155,10 +160,11 @@
["wifi.sta2.dhcp_hostname", "s", {"title": "Host name to include in DHCP requests"}],
["wifi.sta2.protocol", "s", {"title": "802.11 Wi-Fi Protocol for STA Mode, defaults to BGN, can be any combination of BGNLR. Note LR only works between 2 ESP32 devices."}],
["wifi.sta2.listen_interval_ms", "i", {"title": "DTIM Listen Interval (ms)"}],
["wifi.sta_cfg_idx", "i", {"title": "WiFi station config index to use, 0, 1 or 2"}],
["wifi.sta_rssi_thr", "i", {"title": "Do not consider APs with weaker signal"}],
["wifi.sta_connect_timeout", "i", {"title": "Timeout for connection, seconds"}],
["wifi.sta_roam_rssi_thr", "i", {"title": "If connected to AP with weaker signal, try to find a better one."}],
["wifi.sta_roam_interval", "i", {"title": "Scan for better APs at this interval. Set to positive number ot enable."}],
["wifi.sta_ps_mode", "i", {"title": "Power save mode for station: 0 - none, 1 - min, 2 - max."}],
["wifi.sta_all_chan_scan", "b", {"title": "true to scan all channels or false to perform fast scan"}],
["board", "o", {"title": "Board layout configuration"}],
["board.led1", "o", {}],
["board.led1.pin", "i", {"title": "LED GPIO pin"}],
Expand Down
Loading

0 comments on commit 206ef9b

Please sign in to comment.