API Domain
Data Point Access
① Device Data Acquire (request)
|
Summary |
① Device Data Acquire (request)
|
|
|---|---|---|
|
Path |
POST |
|
|
Description |
Through this API, you can acquire devices data through the gateway.
After config, IoE platform pushes data to your endpoint when data is submitted by a gateway to.
If you request to acquire device data by this API, a |
|
|
Request Body |
Content Type |
application/json |
|
Example Value |
Body: JSON
|
|
|
Schema |
JSON
|
|
|
Note |
This API only works when the gateway and the device are both online. |
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Successful request |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
JSON
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Invalid Parameter Error |
|
|
Note |
|
|
② Device Data Acquire (get result)
|
Summary |
② Device Data Acquire (get result)
|
|
|---|---|---|
|
Path |
GET |
|
|
Description |
Through this API, you can acquire devices data through the "sessionId" returned in "Device Data Acquire (request)". |
|
|
Request Params |
Content Type |
application/json |
|
Example Value |
Path parameter: JSON
|
|
|
Schema |
JSON
|
|
200
|
Response |
Status Code |
200 |
|---|---|---|
|
Description |
Successful request |
|
|
Content Type |
application/json |
|
|
Example Value |
Different responses will be returned based on the command execution status.
ack with resultsJSON
ack without resultsJSON
failed ack (without results)JSON
no ack and no resultsJSON
|
|
|
Schema |
JSON
|
|
|
Note |
|
|
400
|
Response |
Status Code |
400 |
|---|---|---|
|
Description |
Invalid parameter |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Invalid Parameter Error |
|
|
Note |
sessionId is not in UUID format |
|
404
|
Response |
Status Code |
404 |
|---|---|---|
|
Description |
Not found |
|
|
Content Type |
application/json |
|
|
Example Value |
JSON
|
|
|
Schema |
Invalid Parameter Error |
|
|
Note |
sessionId does not exist |
|