Send Commands to Device

Source document: GS_GE Device Integration Documentation V1.0.7

The Open Platform sends commands to the device through the unified API.

Command Delivery URL

Code Example
https://open.eye4cloud.com/{app_id}/open/v1/device/command

Request Method

POST

Field Description

Field Description
device_id Unique Device ID; provide at least one of device_id and IMEI
IMEI International Mobile Equipment Identity (IMEI)
timestamp Timestamp
nonce Random string, 8-12 characters
sign Signature Verification Field
data Command data sent to the device, passed as a string

Request Example

Code Example
curl -XPOST 'https://open.eye4cloud.com/{app_id}/open/v1/device/command' \
  -H 'content-type: application/json;charset=UTF-8' \
  -H 'AppID: <YOUR_APP_ID>' \
  --data-raw '{
    "device_id": "DeviceID",
    "IMEI": "DEMO_IMEI_001",
    "timestamp": 12345,
    "nonce": "<YOUR_NONCE>",
    "sign": "<YOUR_SIGN>",
    "data": "{\"cmd\":\"stop_alarm\"}"
}'