POST api/Command/CommandValue

获取设备指令值

Request Information

Body Parameters

获取指令值参数

CommandValueModel
NameDescriptionTypeAdditional information
CommandCode

指令编码

string

None.

DeviceId

设备 id

integer

None.

Token

登录后获取到的 Token

string

None.

Language

语言选项

string

None.

AppId

APP应用标识

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CommandCode": "sample string 1",
  "DeviceId": 2,
  "Token": "sample string 3",
  "Language": "sample string 4",
  "AppId": "sample string 5"
}

application/xml, text/xml

Sample:
<CommandValueModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel">
  <AppId>sample string 5</AppId>
  <Language>sample string 4</Language>
  <Token>sample string 3</Token>
  <CommandCode>sample string 1</CommandCode>
  <DeviceId>2</DeviceId>
</CommandValueModel>

Response Information

Resource Description

State 值为:
0. 表示成功

CommandValueResult
NameDescriptionTypeAdditional information
Code

指令编码

string

None.

Name

string

None.

CmdValue

指令初始值

string

None.

SMSType

下发指令方式 0:网络 1:短信 2:网络和短信

integer

None.

SMSContent

短信指令格式

string

None.

State

状态码

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Code": "sample string 1",
  "Name": "sample string 2",
  "CmdValue": "sample string 3",
  "SMSType": 4,
  "SMSContent": "sample string 5",
  "State": 6
}

application/xml, text/xml

Sample:
<CommandValueResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel">
  <State>6</State>
  <CmdValue>sample string 3</CmdValue>
  <Code>sample string 1</Code>
  <Name>sample string 2</Name>
  <SMSContent>sample string 5</SMSContent>
  <SMSType>4</SMSType>
</CommandValueResult>