Get Network Connection Information
# Get Network Connection Information
Path:
/api/network.json
Method: GET
Content-type: application/json; charset=utf-8
API Description: This can be used to confirm the way the player adopts for network connection.
Response
| 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,
"dns1": "192.168.31.1",
"dns2": "0.0.0.0",
"enabled": 1,
"isstatic": 0,
"mac": "b8:c6:aa:ec:02:df",
"pass": "*",
"type": "wifi"
}, {
"SSID": "a35-1234",
"channel": 11,
"enabled": 1,
"isstatic": 0,
"pass": "123456789",
"type": "wifi ap"
}, {
"channel": 0,
"dns1": "0.0.0.0",
"dns2": "202.96.128.166",
"enabled": 0,
"ips": {
"broadcast": "",
"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"
}]
}