Return a JSON style result. The JSON format is:
{ /*OBJECT*/ | |||||||||
"Result": NUMBER | 200 means OK, other error code meanings are similar to HTTP Response. | ||||||||
"Status": "STRING" | Status message. Responsing result status of API executive, if there errors, it will describe reasons. | ||||||||
"Data": { /*OBJECT*/ | |||||||||
"Device": "STRING" | Wifi device name (e.g. wlan0) | ||||||||
"Object": "STRING" | Wifi Object name | ||||||||
"State": "STRING" | Current Wifi connection status is one of followings:
| ||||||||
"Capabilities": "STRING" | Wireless capabilities, identified its 2.4G/5.8G supporting capability | ||||||||
"ConnectedSSID": "STRING" | Connected SSID name. If not connected, it is empty | ||||||||
"SignalStrength": INTEGER | Current connected AP signal strength (0-100). If not connected, it is 0 | ||||||||
"ConnectingSpeed": INTEGER | Current connected AP speed (Mbps). If not connected, it is 0 | ||||||||
"IP": "STRING" | Currently obtained IP address | ||||||||
"Prefix": INTEGER | Subnet mask in prefix (E.g. 24 is 255.255.255.0, 16 is 255.255.0.0) | ||||||||
"Gateway": "STRING" | Default gateway | ||||||||
} | |||||||||
} |
Device HTTP API, v1.0
Copyright (c) 2016.