Querying Wi-Fi Connections
Function
This interface is used to query Wi-Fi connections.
Syntax
Operation type: GET
URL: https://device_ip/redfish/v1/wifiConncetInfo
Request header:
X-Auth-Token: auth_value
Request message body: None
Parameters
Parameter |
Description |
Value |
---|---|---|
device_ip |
IP address for logging in to a device. |
An IPv4 or IPv6 address. |
auth_value |
Authentication parameter contained in the request. |
You can obtain the value from the session created by using /redfish/v1/SessionService/Sessions. |
Usage Guidelines
None
Example
Request:
GET https://10.10.10.10/redfish/v1/wifiConncetInfo
Request header:
X-Auth-Token: 6599174c38c36838737d9749179e1ee1
Request message body: None
Response:
{ "code": 0, "status": 200, "msg": "success", "wifi_info":{ "netmask":"255.255.255.0", "ether":"00:0f:00:cf:c3:33", "ip":"192.168.137.18", "ssid":"Tenda_0912A0", "bssid":"c8:3a:35:09:12:a1", "getway":"192.168.137.1" } }
Response code: 200
Output Description
Attribute |
Type |
Description |
---|---|---|
code |
Numeric value |
Interface return code. The value can be as follows:
|
status |
Numeric value |
Response code. |
msg |
Character string |
Return information. |
wifi_info |
json |
Connection information. |
netmask |
Character string |
Subnet mask. |
ether |
Character string |
MAC address. |
ip |
Character string |
IP address. |
ssid |
Character string |
Hotspot name. |
bssid |
Character string |
Hotspot primary key. |
gateway |
Character string |
Gateway. |