/api/iot/restlist
列出了物联网网络中的节点数组。
启动 REST 服务器(监听 8083 端口)后,以下 HTTP 请求将返回物联网网络中的节点列表:
http://localhost:8083/api/iot/restlist
iot
数组为物联网网络中的每个节点显示以下键:
{
"this_node_id": 1,
"this_node_role": "server", # Possible values: "server", "device" or "router"
"iot":
[
{
"node_id": 43, # identifier of the node,
"role" : "server", # 'server' or 'device',
"address": "127.0.0.1", # IP address of the node
"rest_iface": "0.0.0.0", # IP address of the REST interface
"rest_port": 8082, # Port of the REST interface
"rest_secure: true # Boolean true if SSL (HTTPS) is used
{
]
}