Commit f69369c6 authored by Rostislav Spinar's avatar Rostislav Spinar

Add two new cmds for DPA 303

parent a4edb3bf
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfEmbedCoordinator_SetMid-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Embedded peripheral Coordinator - Set Mid value request.",
"enum": [
"iqrfEmbedCoordinator_SetMid"
]
},
"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": {
"mid": {
"type": "integer",
"description": "The MID is written to the Coordinator’s database in the external EEPROM."
},
"bondAddr": {
"type": "integer",
"description": "Address of the node to set the MID to."
}
}
}
},
"required": [
"nAdr",
"param"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId",
"req"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfEmbedCoordinator_SetMid-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Embedded peripheral Coordinator - Set Mid value response.",
"enum": [
"iqrfEmbedCoordinator_SetMid"
]
},
"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."
},
"rsp": {
"type": "object",
"properties": {
"nAdr": {
"type": "integer",
"description": "Network device address."
},
"hwpId": {
"type": "integer",
"description": "Hardware profile identification."
},
"rCode": {
"type": "integer",
"description": "DPA error code."
},
"dpaVal": {
"type": "integer",
"description": "DPA value."
},
"result": {
"type": "object",
"properties": {}
},
"errorStr": {
"type": "string",
"description": "Error description from JS drivers."
}
},
"required": [
"nAdr",
"hwpId",
"rCode",
"dpaVal"
]
},
"raw": {
"type": "object",
"properties": {
"request": {
"type": "string",
"description": "Binary buffer with DPA request."
},
"requestTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"confirmation": {
"type": "string",
"description": "Binary buffer with DPA confirmation."
},
"confirmationTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"response": {
"type": "string",
"description": "Binary buffer with DPA response."
},
"responseTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
}
},
"required": [
"request",
"requestTs",
"confirmation",
"confirmationTs",
"response",
"responseTs"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "IQRF GW daemon API (general or mType) status."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfEmbedNode_ValidateBonds-request",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Embedded peripheral Node - Validate bonds request.",
"enum": [
"iqrfEmbedNode_ValidateBonds"
]
},
"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": {
"items": {
"type": "array",
"description": "Array of pairs.",
"items": {
"type": "object",
"properties": {
"address": {
"type": "integer",
"description": "Node’s address."
},
"MID": {
"type": "integer",
"description": "Node’s MID."
}
},
"required": [
"address",
"MID"
]
}
}
}
}
},
"required": [
"nAdr",
"param"
]
},
"returnVerbose": {
"type": "boolean",
"description": "Flag that includes additional parameters in the response."
}
},
"required": [
"msgId",
"req"
]
}
},
"required": [
"mType",
"data"
]
}
{
"$schema": "http://apidocs.iqrfsdk.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfEmbedNode_ValidateBonds-response",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"mType": {
"type": "string",
"description": "Embedded peripheral Node - Validate bonds response.",
"enum": [
"iqrfEmbedNode_ValidateBonds"
]
},
"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."
},
"rsp": {
"type": "object",
"properties": {
"nAdr": {
"type": "integer",
"description": "Network device address."
},
"hwpId": {
"type": "integer",
"description": "Hardware profile identification."
},
"rCode": {
"type": "integer",
"description": "DPA error code."
},
"dpaVal": {
"type": "integer",
"description": "DPA value."
},
"result": {
"type": "object",
"properties": {}
},
"errorStr": {
"type": "string",
"description": "Error description from JS drivers."
}
},
"required": [
"nAdr",
"hwpId",
"rCode",
"dpaVal"
]
},
"raw": {
"type": "object",
"properties": {
"request": {
"type": "string",
"description": "Binary buffer with DPA request."
},
"requestTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"confirmation": {
"type": "string",
"description": "Binary buffer with DPA confirmation."
},
"confirmationTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
},
"response": {
"type": "string",
"description": "Binary buffer with DPA response."
},
"responseTs": {
"type": "string",
"description": "YYYY-MM-DDTHH:MM:SS.MS"
}
},
"required": [
"request",
"requestTs",
"confirmation",
"confirmationTs",
"response",
"responseTs"
]
},
"insId": {
"type": "string",
"description": "IQRF GW daemon instance identification."
},
"status": {
"type": "integer",
"description": "IQRF GW daemon API (general or mType) status."
},
"statusStr": {
"type": "string",
"description": "IQRF GW daemon API (general or mType) status in string form."
}
},
"required": [
"msgId",
"rsp",
"status"
]
}
},
"required": [
"mType",
"data"
]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment