55
Receive C/Qi from IO port automatically
Method: POST
URL:
Request body data:
{"
code
": "request", "
cid
":2012, "
adr
": "data/port3]/input/cqi/datachanged/subscribe", "
reply
": "
reply text
", "
data
":
{"callback": "http://192.168.1.1:34003/dte-io2-cqi-changed"}}
Request
element
Value
Remark
code
"request"
-
cid
<CorrID>
Multiple subscriptions from one source are
allowed, but each will need a unique "cid".
e.g. 2012
adr
"data/port[
N
]/input/cqi/datachanged/subscribe" For DTE10x :
N
= 1…4
For DTE60x, DTE80x, DTE9Xx:
N
= 1
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
{ "callback":
"http://<
ip address
>:<
Port
>/<
Event
>"}
Data of the IoT Webserver
(1)
:
IP address
: IP address of the subscriber
Port
: Port number of the subscriber
Event
: Name of the event. Can be set freely
by the User.
e.g. "http://192.168.1.1:34003/dte-io2-cqi-
changed"
(1)
Please check, that the IoT Webserver is available under the IP address and the ip.port is not blocked by
the firewall.
Response data:
{"
cid
":2012,"
adr
":"
reply text
","
code
":200}
Response
element
Value
Remark
cid
<CorrID>
Correlation identifier.
Same as send in request
e.g. 2012
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