OneNET IoT Platform Platform Introduction Introduction Manual Guidline for Device Development Guideline for Application Development
API
API Usage API List SDK MQTT LwM2M EDP Modbus TCP
HTTP Push MQ
Other Service Common Question

# Inquire Trigger

Request Method: GET

URL: http://api.heclouds.com/triggers/trigger_id

trigger_id: need to be replaced with trigger ID

Return Parameter

Parameter Name Format Description
errno int code for call error , 0 indicates call is successful
error string error description, "succ" indicates call is successful
data json device related information returned after successful interface call, see data description table
data Description Table
Parameter Name Format Description
title string trigger name
id int trigger ID
create_time string trigger creation time, example: 2017-08-22 09:18:18
ds_id string datastream name
dev_ids array-string device ID that the operation will affect
url string alarm notification address
type string trigger condition
threshold trigger condition threshold, used coordinating with type

Example of Request

GET http://api.heclouds.com/triggers/145701 HTTP/1.1

Example of Return

{
    "errno": 0,
    "data": {
        "create_time": "2017-08-22 09:18:18",
        "dev_ids": ["39456825"],
        "threshold": 100,
        "id": 145701,
        "title": "trigger",
        "type": ">",
        "ds_id": "gps",
        "url": "http://aoic.choqf.com"
    },
    "error": "succ"
}

results matching ""

    No results matching ""