Set Player Network
# Set Player Network
Path:
/api/network
Method: POST
Content-type: application/json; charset=utf-8
API Description: This can be used to set the network connection method for the player (Wi-Fi, LAN, or 4G). The WiFi AP can be used together with Wi-Fi, LAN or 4G. Before network settings, you should have the network.json information and set the network accordingly.
Request
Name | Type | Example | Description |
---|---|---|---|
SSID | String | a35-1234 | Set the connected Wi-Fi's name, or the wifi ap's name |
pass | String | 123456789 | Wireless pass code |
type | String | wifi ap | Network type wifi: The player is connecting to Wi-Fi network. wifi ap: The player's hotspot, which is accessible for mobile phone and tablet. lan: The player is using LAN for network connection. 4G: The player is using 4G network. |
enabled | int | 1 | Open or close the network 0-Close, 1-Open |
isstatic | int | 0 | Static IP 1-Static IP, 0-DHCP |
channel | int | 11 | Channel |
ips.ip | String | - | Set the static IP address |
ips.mask | String | - | Set the static subnet mask |
ips.gateway | String | - | Set the static gateway |
dns1 | String | - | Set static DNS server 1 |
dns2 | String | - | Set static DNS server 2 |
Example
{
"types": [{
"SSID": "Clt_Office_SmartCity",
"channel": 0,
"enabled": 0,
"ips": {},
"isstatic": 0,
"pass": "*",
"type": "wifi"
}, {
"SSID": "a35-1234",
"channel": 11,
"enabled": 1,
"ips": {},
"isstatic": 0,
"pass": "123456789",
"type": "wifi ap"
}, {
"channel": 0,
"dns1": "0.0.0.0",
"dns2": "202.96.128.166",
"enabled": 1,
"ips": {
"gateway": "0.0.0.0",
"ip": "0.0.0.0",
"mask": "0.0.0.0"
},
"isstatic": 0,
"type": "lan"
}, {
"channel": 0,
"enabled": 0,
"isstatic": 0,
"type": "4G"
}]
}