GetWifiInfo. Get wifi information.
Request
<?xml version="1.0" encoding="utf-8"?>
<sdk guid="##GUID">
</sdk>
<!--
Description:
1. Sdk.guid is the guid value obtained through the negotiation
of the SDK protocol version.
-->
Respond
<?xml version="1.0" encoding="utf-8"?>
<sdk guid="##GUID">
<out method="GetWifiInfo" result="##value">
<wifi valid="##value">
<enable
value="##value"/>
<mode
value="##value"/>
<ap>
<ssid value="##value"/>
<passwd value="##value"/>
<channel
value="##value"/>
<encryption
value="##value"/>
<dhcp auto="##value"/>
<address
ip="##value" netmask="##value" gateway="##value"
dns="##value"/>
</ap>
<station>
<current
index="##value"/>
<list>
<item>
<ssid value="##value"/>
<passwd value="##value"/>
<signal
value="##value"/>
<apmac value="##value"/>
<dhcp auto="##value"/>
<address
ip="##value" netmask="##value" gateway="##value"
dns="##value"/>
</item>
<list>
</station>
</wifi>
</out>
</sdk>
<!--
Description:
1. Sdk.guid is the guid value obtained through the negotiation
of the SDK protocol version.
2. out.method = GetWifiInfo
3. out.result: (The
error code refers to ErrorCode
4. out.result : When the value is not "kSuccess", out has no child nodes.
5. wifi.valid :Value range {"true" (with WIFI
module access), "false" (no WIFI module access)}; wifi.valid is "false" when
there are no child nodes.
6. enable.value : Value range {"true" (with WIFI network access), "false" (no WIFI network access)}.
7. mode.value: Wifi working mode, value range {"ap" (ap mode), "station" (station mode)}.
8. ap.ssid.value:
SSID, fixed value (device ID).
9. ap.passwd.value: password
10.ap.channel.value: channel
11.ap.encryption.value: Encryption method, fixed value "WPA-PSK".
12.ap.dhcp: ignore
13.ap.address: ignore
14.station.current.index: Indicates the index value of the
currently used ap node in the list, and -1 indicates that the ap node is not
selected.
15.station.list :Contains multiple items, item
indicates wifi discovery and saved ap node information.
16.station.list.item.ssid.value: The ssid of ap.
17.station.list.item.passwd.value: password
18.station.list.item.signal.value: Signal strength.
19.station.list.item.apmac.value: The mac address of the ap
device.
20.station.list.item.dhcp.auto:
Value range {"true" (dhcp gets ip address), "false" (static ip
address)}.
21.station.list.item.address.ip: WIFI network ip address.
22.station.list.item.address.netmask: WIFI network subnet mask.
23.station.list.item.address.gateway: gateway
24.station.list.item.address.dns: dns
-->