Returning Configuration Result

This interface is a common interface used by the edge side to return the configuration result to the central side.

Message instance

{
    "header": {
        "msg_id": "741aec66-99b2-4d97-aaf2-63d27f53bbc5",
        "parent_msg_id": "",
        "timestamp": 1550107087319,
        "sync": false
    },
    "route": {
        "source": "hardware | resource",
        "group": "hub",
        "operation": "update",
        "resource": "websocket/config_result"
    },
    "content": {
    }
}

Parameter description

The content message is described as follows:

{
    "topic": "profile",
    "percentage": "100%",
    "result": "success",
    "reason": "ERR.300, Parameter error:Parameter role error"
}

Elements are defined as follows:

Level-1 Resource Name

Description

Type

Value Range

topic

Subscribe Message

string

32 bytes

percentage

Collection progress

string

The value range is 0% to 100%.

result

Collection result

string

The value can be success, failed, partial failed, or processing.

reason

Failure cause

string

The return format is ERR.errcode, detailinfo. For details about the error code, see Error Code Description.