Home / Docs Center / Device API Reference / Network ConfigQuery

Network ConfigQuery

Device API Reference · New API

Project: Device Interface Document (New Version) | page_id: 1347

[TOC]

Brief Description
  • Network configuration query
Request URL
  • /xsw/api/net/info
Request Method
  • POST
Parameters
Parameter Name Required Type Description
netType Yes number Network type: 1 for network port 0 network configuration, 2 for basic WiFi configuration, 3 for WiFi hotspot configuration
Return Example
{
  "netType": 1,
  "enable": 0,
  "dhcp": 0,
  "ip": "192.168.0.82",
  "netmask": "255.255.255.0",
  "gateway": "192.168.0.1",
  "dns1": "223.5.5.5",
  "dns2": "223.5.5.6",
  "mac": "7e:78:13:98:10:be",
  "mtu": 1360
}
Return Parameter Description
Parameter Name Type Description
netType int Network type
enable int Enable status
dhcp int Whether DHCP is enabled
ip string IP
netmask string Subnet mask
gateway string Gateway
dns1 string dns1
dns2 string dns2
mac string MAC address
mtu string MTU value
name string WiFi name
Notes
  • The corresponding values are returned according to the requested network type
Didn't find what you need?Contact us,Talk to our engineers directly.

Request a Quote

Fill in the form and we will get back with a quote and proposal within 1 business day.

Click "Generate inquiry email" to open your mail client with the body pre-filled. If no mail client is configured, click "Copy" and paste it into webmail — recipient: sunshiyang@xstrive.com.