Trying out advanced tab

main
riley 1 year ago
parent 93df876741
commit 8710e36826

@ -124,25 +124,28 @@ o = s:option(Value, "key", translate("Key"))
o.default = "easymesh" o.default = "easymesh"
o:depends("encryption", 1) o:depends("encryption", 1)
---- kvr -- Add a new tab called "Advanced" to the existing "Setup" section
enable = s:option(Flag, "kvr", translate("K/V/R"), translate("")) s:tab("advanced", translate("Advanced Settings"))
enable.default = 1
enable.rmempty = false -- Move K/V/R settings to the "Advanced" tab
enable_kvr = s:taboption("advanced", Flag, "kvr", translate("K/V/R"), translate("Enable Key Value Roaming"))
o = s:option(Value, "mobility_domain", translate("Mobility Domain"), translate("4-character hexadecimal ID")) enable_kvr.default = 1
o.default = "4f57" enable_kvr.rmempty = false
o.datatype = "and(hexstring,rangelength(4,4))"
o:depends("kvr", 1) mobility_domain = s:taboption("advanced", Value, "mobility_domain", translate("Mobility Domain"), translate("4-character hexadecimal ID"))
mobility_domain.default = "4f57"
o = s:option(Value, "rssi_val", translate("Threshold for an good RSSI")) mobility_domain.datatype = "and(hexstring,rangelength(4,4))"
o.default = "-60" mobility_domain:depends("kvr", 1)
o.atatype = "range(-1,-120)"
o:depends("kvr", 1) rssi_val = s:taboption("advanced", Value, "rssi_val", translate("Threshold for a good RSSI"))
rssi_val.default = "-60"
o = s:option(Value, "low_rssi_val", translate("Threshold for an bad RSSI")) rssi_val.datatype = "range(-1,-120)"
o.default = "-88" rssi_val:depends("kvr", 1)
o.atatype = "range(-1,-120)"
o:depends("kvr", 1) low_rssi_val = s:taboption("advanced", Value, "low_rssi_val", translate("Threshold for a bad RSSI"))
low_rssi_val.default = "-88"
low_rssi_val.datatype = "range(-1,-120)"
low_rssi_val:depends("kvr", 1)
---- Apply MESH settings ---- Apply MESH settings
--ctrl = m:section(TypedSection, "easymesh", "Apply Mesh WiFi Settings to Server or Node") --ctrl = m:section(TypedSection, "easymesh", "Apply Mesh WiFi Settings to Server or Node")

Loading…
Cancel
Save