45
Read diagnostics from the IO channel
With this service the diagnostics of the IO channels can be read.
Service available
: All devices
This service is supported in all channel modes
Method: POST
URL:
Request body data:
{"
code
": "request", "
cid
": 9000, "
adr
": "diagnostics/port[1]/list", "
reply
": "
reply text
"}
Request
element
Value
Remark
code
"request"
-
cid
<Number>
Correlation identifier.
Can be set from 0…32767
e.g. 9000
adr
<target_address>
For DTE10x :
N
= 1…4
For DTE60x, DTE80x, DTE9Xx:
N
= 1…3
e.g.: "diagnostics/port[1]/list"
reply
"reply text"
Optional:
Text to be send back in the response.
If not needed, this element can be removed
from the request.
If the error does not persist, it is deleted by reading it out.
Response data:
{"
cid
": 9000,"
data
": {"count": 1,"codes": ["F4FE9005"]},"
adr
":"
reply text
","
code
": 200}
Response
element
Value
Remark
cid
<Number>
Correlation identifier.
Same as send in request.
e.g. 9000
data
"count": N
codes:["<error code>"]
Number of command error codes present
Command error codes of the device:
adr
<string>
Optional.
Text sent in element "reply" of the service
request
e.g. "
reply text"
code
200
Response code of the IoT core
See chapter ->