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. |
} |
The HTTP API is also using the same service port, please note that the service port changing will also affect HTTP API. It will not take effect until you reboot the device. Refer to reboot.lua.
Device HTTP API, v1.0
Copyright (c) 2016.