Device.status

Description

Retrieves the current value of the state variables of the device with the given uuid.

Request specification

  • Method: GET
  • URL: /devices/{uuid}/states

Example Request

  • Request URL: https://www.lhings.com/laas/api/v1/devices/11111111-2222-3333-4444-555555555555/states
  • Request headers: X-Api-Key: aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee
  • Request method: GET

Example Response

  • HTTP status: 200 OK
  • Response body:
    [{"name":"online","value":"true"},{"name":"temperature","value":"30"}]

Error summary

  • 200: success.
  • 401: Api key not provided or invalid.
  • 404: device is not installed or is currently offline.
Back to top