{
    "$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/latest/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
    "self": {
        "vendor": "com.iqrftech.self-desc",
        "name": "iqrfEmbedCoordinator_EnableRemoteBonding-request",
        "format": "jsonschema",
        "version": "1-0-0"
    },
    "type": "object",
    "properties": {
        "mType": {
            "type": "string",
            "description": "Embedded peripheral Coordinator - Enable Remote Bonding request.",
            "enum": [
                "iqrfEmbedCoordinator_EnableRemoteBonding"
            ]
        },
        "data": {
            "type": "object",
            "properties": {
                "msgId": {
                    "type": "string",
                    "description": "Message identification for binding request with response."
                },
                "timeout": {
                    "type": "integer",
                    "description": "Timeout to wait for IQRF DPA response."
                },
                "req": {
                    "type": "object",
                    "properties": {
                        "nAdr": {
                            "type": "integer",
                            "description": "Network device address."
                        },
                        "hwpId": {
                            "type": "integer",
                            "description": "Hardware profile identification."
                        },
                        "param": {
                            "type": "object",
                            "properties": {
                                "bondingMask": {
                                    "type": "integer",
                                    "description": "See IQRF OS User's and Reference guides (remote bonding, function bondNewNode)."
                                },
                                "control": {
                                    "type": "integer",
                                    "description": "Bit 0 enables remote bonding mode. If enabled then previously bonded nodes are forgotten. Bit 1-7 reserved"
                                },
                                "userData": {
                                    "type": "array",
                                    "description": "Optional data that can be used at Reset Custom DPA Handler event.",
                                    "items": {
                                        "type": "integer"
                                    },
                                    "maxItems": 4
                                }
                            }
						}
                    },
                    "required": [
                        "nAdr",
                        "param"
                    ]
                },
                "returnVerbose": {
                    "type": "boolean",
                    "description": "Flag that includes additional parameters in the response."
                }
            },
            "required": [
                "msgId",
                "req"
            ]
        }
    },
    "required": [
        "mType",
        "data"
    ]
}
