This is an old revision of the document!
captive_portal.json file
Edit the file /etc/MESHdesk/configs/captive_config.json.
This file is a JSON structure that the device uses as a reference to configure itself with a special captive portal when it is not yet managed by the controller.
There are only two items that might need to be tweaked
With the Xiaomi 4A 100M Edition radio0 is the 2.4G radio so no need to tweak that item. (If the hardware has radio1 as the 2.4G band simply look for all the references to radio0 and make them radio1)
See this snippet of a device which has radio1 using the 2.4G band
"wireless": [
{
"wifi-device": "radio1",
"options": {
"channel": 1,
"disabled": 0,
"hwmode": "11g",
"htmode": "HT20"
}
},
{
"wifi-iface": "two",
"options": {
"device": "radio1",
"ifname": "two0",
"mode": "ap",
"network": "ex_two",
"encryption": "none",
"ssid": "_Replace_",
"key": "",
"hidden": false,
"isolate": false,
"auth_server": "",
"auth_secret": ""
}
},
{
"wifi-iface": "web_by_w",
"options": {
"device": "radio1",
"mode": "sta",
"network": "web_by_w",
"encryption": "psk2",
"key": "radiusdesk",
"ssid": "meshdesk_config",
"disabled": "1"
}
}
],
{
"interface": "lan",
"options": {
"ifname": "eth0.1",
"type": "bridge",
"proto": "static",
"ipaddr": "10.50.50.50",
"netmask": "255.255.255.0"
}
},
{
"interface": "lan",
"options": {
"ifname": "wan",
"type": "bridge",
"proto": "static",
"ipaddr": "10.50.50.50",
"netmask": "255.255.255.0"
}
},
Once the tweaks are completed we can test everything out.
The following link shows how to point the device to the controller using the
GUI
-
Point the device to your controller and reboot it.
If all goes well it will show up in Unknown Nodes
If it is a new hardware type add it to the controller as described here:
Hardwares (Again Once Off)
-