Commit fab05769 authored by Rostislav Spinar's avatar Rostislav Spinar

Breakdown update

parent 00747a73
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"$schema": "http://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfSensor_Enumerate-response",
......@@ -76,6 +76,38 @@
"items": {
"type": "integer"
}
},
"breakdown": {
"type": "array",
"description": "Parsed generic types if present in device response.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"description": "Value type of the sensor (quantity)."
},
"name": {
"type": "string",
"description": "Name of the sensor (quantity)."
},
"shortName": {
"type": "string",
"description": " Short name of the sensor (quantity). Typically it is a symbol used at physics."
},
"value": {
"oneOf": [
{ "type": "number" },
{ "type": "null" }
],
"description": "Value of the sensor."
},
"unit": {
"type": "string",
"description": "Unit of the quantity. Dimensionless quantities has \"\"."
}
}
}
}
}
},
......
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"$schema": "http://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfSensor_Frc-response",
......@@ -53,7 +53,7 @@
"maxItems": 31,
"description": "Returns array of objects for every sensor, see its description.",
"items": {
"oneOf": [
"oneOf": [
{
"type": "object",
"properties": {
......@@ -83,6 +83,42 @@
"unit": {
"type": "string",
"description": "Unit of the quantity. Dimensionless quantities has \"\"."
},
"breakdown": {
"type": "array",
"description": "Parsed generic types if present in device response.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"description": "Value type of the sensor (quantity)."
},
"name": {
"type": "string",
"description": "Name of the sensor (quantity)."
},
"shortName": {
"type": "string",
"description": " Short name of the sensor (quantity). Typically it is a symbol used at physics."
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Value of the sensor."
},
"unit": {
"type": "string",
"description": "Unit of the quantity. Dimensionless quantities has \"\"."
}
}
}
}
},
"required": [
......@@ -177,4 +213,4 @@
"mType",
"data"
]
}
}
\ No newline at end of file
{
"$schema": "https://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"$schema": "http://apidocs.iqrf.org/iqrf-gateway-daemon/com.iqrftech.self-desc/schema/jsonschema/1-0-0#",
"self": {
"vendor": "com.iqrftech.self-desc",
"name": "iqrfSensor_ReadSensorsWithTypes-response",
......@@ -69,14 +69,54 @@
},
"value": {
"oneOf": [
{ "type": "number" },
{ "type": "null" }
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Value of the sensor."
},
"unit": {
"type": "string",
"description": "Unit of the quantity. Dimensionless quantities has \"\"."
},
"breakdown": {
"type": "array",
"description": "Parsed generic types if present in device response.",
"items": {
"type": "object",
"properties": {
"type": {
"type": "integer",
"description": "Value type of the sensor (quantity)."
},
"name": {
"type": "string",
"description": "Name of the sensor (quantity)."
},
"shortName": {
"type": "string",
"description": " Short name of the sensor (quantity). Typically it is a symbol used at physics."
},
"value": {
"oneOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"description": "Value of the sensor."
},
"unit": {
"type": "string",
"description": "Unit of the quantity. Dimensionless quantities has \"\"."
}
}
}
}
},
"required": [
......
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