제어 결과 확인

GET /devices/{device_id}/control

서브 기기 제어 결과를 확인할 수 있습니다.

Request

URL : http://{device_ip}:5003/devices/{device_id}/control

METHOD : GET

Header

  • None

Parameter (Path)

  • device_id (String) *: 정보 조회할 기기의 id

Response

Type: Object

  • resultCode (String) *: API 수행 결과 코드 값

  • result (Object) * : 기기 제어 결과

    • state (String) * :

    • result (List) * : 해당 기기의 최근 10개의 제어결과를 포함함

      • deviceId(String) * : 제어한 기기의 id

      • result(Object) * : 제어 결과로 기기가 리턴한 값을 보여줌

      • requestId(String) * : 어떤 제어에 대한 결과인지 확인함

      • timestamp(String) * : 제어가 발생한 시간을 기록함

Response Example

{
    "resultCode": "0000",
    "result": {
        "state": "RUNNING",
        "result": [
            {
                "deviceId": "59636f82-0e9b-46cc-92e9-be7fdba0971e",
                "result": {
                    "volume": 20
                },
                "requestId": "6a525465-4def-49ef-9027-10da2c94bfeb",
                "timestamp": 1660294577
            }
        ]
    }
}

Last updated