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 |
"SSID_list": [ /*ARRAY*/ | Each item is a scanned SSID, the contents are as follows: |
{ /*OBJECT*/ | |
"SSID": "STRING" | SSID Name |
"Strengh": NUMBER | 0-100, signal strength |
"Nosafe": NUMBER | 0 or 1. If 'Nosafe' is 1 means this SSID doesn't need password (not safe) |
} | |
] | |
} | |
} |
Device HTTP API, v1.0
Copyright (c) 2016.