58
Write output C/Qo of the IO channel
Service available
: DTE105, DTE605, DTE805, DTE9x5
This service is supported in the channel mode "Output" .
Method: POST
URL:
{"
code
": "request","
cid
": 4711,"
adr
": "/data/port[4]/output/cqo/setdata","
reply
":"
reply text
", "
data
": {"newvalue":
1}
Request
element
Value
Remark
code
"request"
-
cid
<CorrID>
Correlation identifier.
Can be set from 0…32767
adr
"/data/port[
N
]/output/cqo/setdata"
For DTE10x :
N
=1…4
For DTE60x, DTE80x, DTE9Xx:
N
= 2,3
reply
"<string>"
Optional:
Text to be send back in the response.
If not needed, this element can be removed
from the request.
e.g. "reply text"
data
{"newvalue": <val>}
State to set for channel output C/Qo
<0> = off (0V)
<1> = on
(24V)
Note, that the IO port
Response data:
{"
cid
":
4711
,"
adr
":"reply text", "
code
":200}
Response
element
Value
Remark
cid
4711
Correlation identifier.
Same as send in request
adr
<string>
Optional.
Text sent in element "reply" of the service request
e.g. "
reply text"
code
<status code>
Response code of the IoT core
See chapter ->
e.g. 200