Skip to content
Maximiliano Churichi edited this page Jul 27, 2017 · 4 revisions

GET /api/status

Description

Get the current status of the device

Usage

curl -X GET "http://{iPava}/api/status"

Sample response

{
  "deviceId": "iPava_1235",
  "auth": true,
  "success": true,
  "response": {
    "calentando": true,
    "temperatura": 28.3
  }
}

POST /api/start

Description

Starts the device with the desired temperature

Usage

curl -X POST "http://{iPava}/api/start/" -d '{"temperature":83}'

Sample response

{
  "auth": true,
  "success": true,
  "response": {
    "taskId": 1,
    "ack": true
  }
}
Clone this wiki locally