mirror of https://github.com/arendst/Tasmota.git
Add SetOption41 to my_user_config.h
This commit is contained in:
parent
baf3b9b662
commit
5337d84063
|
@ -70,6 +70,7 @@
|
||||||
#define WIFI_CONFIG_TOOL WIFI_RETRY // [WifiConfig] Default tool if wifi fails to connect (default option: 4 - WIFI_RETRY)
|
#define WIFI_CONFIG_TOOL WIFI_RETRY // [WifiConfig] Default tool if wifi fails to connect (default option: 4 - WIFI_RETRY)
|
||||||
// (WIFI_RESTART, WIFI_MANAGER, WIFI_RETRY, WIFI_WAIT, WIFI_SERIAL, WIFI_MANAGER_RESET_ONLY)
|
// (WIFI_RESTART, WIFI_MANAGER, WIFI_RETRY, WIFI_WAIT, WIFI_SERIAL, WIFI_MANAGER_RESET_ONLY)
|
||||||
// The configuration can be changed after first setup using WifiConfig 0, 2, 4, 5, 6 and 7.
|
// The configuration can be changed after first setup using WifiConfig 0, 2, 4, 5, 6 and 7.
|
||||||
|
#define WIFI_ARP_INTERVAL 0 // [SetOption41] Send gratuitous ARP interval
|
||||||
#define WIFI_SCAN_AT_RESTART false // [SetOption56] Scan wifi network at restart for configured AP's
|
#define WIFI_SCAN_AT_RESTART false // [SetOption56] Scan wifi network at restart for configured AP's
|
||||||
#define WIFI_SCAN_REGULARLY false // [SetOption57] Scan wifi network every 44 minutes for configured AP's
|
#define WIFI_SCAN_REGULARLY false // [SetOption57] Scan wifi network every 44 minutes for configured AP's
|
||||||
|
|
||||||
|
|
|
@ -731,6 +731,7 @@ void SettingsDefaultSet2(void)
|
||||||
Settings.flag3.use_wifi_scan = WIFI_SCAN_AT_RESTART;
|
Settings.flag3.use_wifi_scan = WIFI_SCAN_AT_RESTART;
|
||||||
Settings.flag3.use_wifi_rescan = WIFI_SCAN_REGULARLY;
|
Settings.flag3.use_wifi_rescan = WIFI_SCAN_REGULARLY;
|
||||||
Settings.wifi_output_power = 170;
|
Settings.wifi_output_power = 170;
|
||||||
|
Settings.param[P_ARP_GRATUITOUS] = WIFI_ARP_INTERVAL;
|
||||||
ParseIp(&Settings.ip_address[0], WIFI_IP_ADDRESS);
|
ParseIp(&Settings.ip_address[0], WIFI_IP_ADDRESS);
|
||||||
ParseIp(&Settings.ip_address[1], WIFI_GATEWAY);
|
ParseIp(&Settings.ip_address[1], WIFI_GATEWAY);
|
||||||
ParseIp(&Settings.ip_address[2], WIFI_SUBNETMASK);
|
ParseIp(&Settings.ip_address[2], WIFI_SUBNETMASK);
|
||||||
|
|
Loading…
Reference in New Issue