s=m:section(TypedSection,"easymesh",translate("Enable Router as DHCP Mesh Node"),translate("Set up Easy Mesh WiFi on your server and nodes first. All mesh nodes will utilize your mesh server for DHCP. "))
-- s = m:section(TypedSection, "easymesh", translate("Enable Router as DHCP Mesh Node"), translate("Set up Easy Mesh WiFi on your server and nodes first. All mesh nodes will utilize your mesh server for DHCP. "))
s.anonymous=true
-- s.anonymous = true
---- ap_mode
---- ap_mode
enable=s:option(Flag,"ap_mode",translate("Enable as DHCP Mesh Node"),translate("Important: Setup your mesh WiFi network before enabling."))
o=s:option(Value,"gateway",translate("Set Hostname for this Mesh Node"))
o.default="node2"
o.default="node2"
o:value("node2","node2")
o:value("node2","node2")
o:value("node3","node3")
o:value("node3","node3")
@ -220,7 +202,28 @@ o:value("node7", "node7")
o:value("node8","node8")
o:value("node8","node8")
o:value("node9","node9")
o:value("node9","node9")
o.datatype="string"
o.datatype="string"
o:depends("ap_mode",1)
o:depends("role","off")
btnAPMode=s:taboption("apmode",Button,"_btn_apmode",translate("Join Mesh Network"),translate("WARNING: THIS WILL CHANGE THIS NODE'S IP ADDRESS, YOU WILL LOOSE ACCESS TO THIS UI"))
functionbtnAPMode.write()
luci.sys.call("/easymesh/easymesh.sh apmode")
end
btnAPMode:depends("role","off")
---- ip address
--o = s:option(Value, "ipaddr", translate("Static IP Address"))
--o.default = "192.168.8.2"
--o.datatype = "ip4addr"
--o:depends("ap_mode", 1)
-- o = s:option(Value, "dns", translate("Mesh Gateway IP Address"))
-- o.default = "192.168.8.1"
-- o.datatype = "ip4addr"
-- o:depends("ap_mode", 1)
-- o = s:option(Value, "netmask", translate("IPv4 netmask"))
-- o.default = "255.255.255.0"
-- o.datatype = "ip4addr"
-- o:depends("ap_mode", 1)
-- MESH Node Control: apply mesh settings
-- MESH Node Control: apply mesh settings
ctrl=m:section(TypedSection,"easymesh","Click Save Then Enable or Disable Your Mesh WiFi settings")
ctrl=m:section(TypedSection,"easymesh","Click Save Then Enable or Disable Your Mesh WiFi settings")