Device Connectivity Made Easy

Focus on your product and innovation and leave communication and management to DeviceHive.

Get Started

Gets information about device command.

Request

HTTP Request

GET /device/{deviceId}/command/{commandId}

Parameters

Parameter Name

Required

Type

Description

deviceId

Yes

string

Device unique identifier.

commandId

Yes

integer

Command identifier.

Authorization

Access JSON Web Token (GetDeviceCommand)

Request Body

Do not supply a request body with this method.

Response

If successful, this method returns a DeviceCommand resource in the response body.

Property Name

Type

Description

id

integer

Command identifier.

command

string

Command name

timestamp

datetime

Command UTC datetime (yyyy-MM-dd'T'HH:mm:ss.SSS ISO 8601).

lastUpdated

datetime

Last command update UTC datetime (yyyy-MM-dd'T'HH:mm:ss.SSS ISO 8601).

userId

integer

Associated user identifier.

deviceId

string

Device unique identifier.

networkId

integer

Network unique identifier.

parameters

object

Command parameters, a JSON object with an arbitrary structure.

lifetime

integer

Command lifetime, a number of seconds until this command expires.

status

string

Command status, as reported by device or related infrastructure.

result

object

Command execution result, an optional value that could be provided by device

Updated 3 years ago

get


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.