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 | ||||||||||||||
"CONNECTION_list": [ /*ARRAY*/ | Each one is a saved(remembered) connection, content as followings: | ||||||||||||||
{ /*OBJECT*/ | |||||||||||||||
"Title": "STRING" | Connection title | ||||||||||||||
"Security": "STRING" | Connection security:
| ||||||||||||||
"IsCurrent": INTEGER | 0|1, Whether the connection is currently in use | ||||||||||||||
"AddressResolve": "STRING" | IP addresses resolve:
| ||||||||||||||
"Object": "STRING" | Connection object name: Pay attention of this Object, you must provide it for changing/connecting/disconnecting/deleting connection. The object name is like: /org/freedesktop/NetworkManager/Connections/3 | ||||||||||||||
"Uuid": "STRING" | The UUID of this connection. You must provide it for changing connection. | ||||||||||||||
} | |||||||||||||||
] | |||||||||||||||
} | |||||||||||||||
} |
KILOVIEW Device HTTP API, v1.0
Copyright (c) 2016, KILOVIEW Electronics.