50
CONTENTS
The REST-style API is based on the REST architectural style. It presents the state and configuration as an hierarchy
of resources, and relies on HTTP to perform action signaling and content negotiation. Requests with different HTTP
headers yield different representations of resources (e.g. plain text, HTML, JSON, etc.). A type description system
is used to outline the object model.
Refer to the REST-style API reference for details.
10.3
JSON-RPC
JSON-RPC test (requires JavaScript)
Parameters
Request
Reply
headers
Result
URI:
/jsonrpc/
relay
Method:
get
"name"
Remove
Add new parameter:
Add
Perform RPC
POST /jsonrpc/relay HTTP/1.1
Content-Type: application/json-rpc
Accept: application/json-rpc
X-Requested-With: XMLHttpRequest
Content-Length: 57
{"jsonrpc":"2.0","id":1,"method":"get","params":
["name"]}
Connection:
close
Pragma: no-
cache
Allow: POST
Expires:
Mon, 01 Jan
1990
00:00:01
GMT
Cache-
Control:
No-cache,
no-store,
must-
revalidate,
max-age=0
Transfer-
Encoding:
chunked
"DLI
Controller"
JSON-RPC demo
JSON-RPC allows to access an object model similar to the one of the REST-like API, but in a different manner
which may be more suitable for some integration environments. All composite objects are visible using JSON-RPC,
with their field values accessible using "get" (with the field name in the argument) and "set" methods (with the field
name and value as arguments). Additionally, containers support "add", "remove" and "list" methods. The "describe"
method can be used to output a type description for the object (similar to the REST API "description" relative URI).
10.4
UPnP settings
UPnP outlet binding configuration
#
Enable
Alternate name
Profile
Unique ID
1
Outlet 1
b76cb5710
2
Outlet 2
b76cb5711
3
Outlet 3
b76cb5712
4
Outlet 4
b76cb5713
5
Outlet 5
b76cb5714
6
Outlet 6
b76cb5715
7
Outlet 7
b76cb5716
8
Outlet 8
b76cb5717
Submit
belkin_wemo_socket
belkin_wemo_socket
belkin_wemo_socket
belkin_wemo_socket
belkin_wemo_socket
belkin_wemo_socket
belkin_wemo_socket
belkin_wemo_socket
UPnP settings
DLI LPC9 User’s Guide: 1.7.24.0
Содержание LPC9
Страница 1: ...DLI LPC9 User s Guide 1 7 24 0 ...
Страница 81: ......