| Required role: | ApiUser |
| All Verbs | /Light/QueryLightHisData |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Light10 | query | long | No | |
| Days | query | int | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Command | form | string | No | |
| Options | form | RequestOptions | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| SendNoWait | form | bool | No | |
| RequestTimeout | form | int | No | |
| Debug | form | bool | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Data | form | List<LightHisData> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Command | form | string | No | |
| Status | form | string | No | |
| ErrorMessage | form | string | No | |
| ErrList | form | List<long> | No | |
| DeviceList | form | List<DeviceData> | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ActionName | form | string | No | |
| DeviceNumber | form | string | No | |
| ActionResult | form | string | No | |
| ByteData | form | byte[] | No | |
| ByteResult | form | byte[] | No | |
| ErrorMessage | form | string | No | |
| ConnectStatus | form | int | No | |
| ByteDataHstr | form | string | No |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| HisId | form | long | No | |
| LightId | form | long | No | |
| Address | form | string | No | |
| UpUID | form | string | No | |
| SampTime | form | DateTime | No | |
| LocalDate | form | DateTime? | No | |
| Current | form | double? | No | |
| Voltage | form | double? | No | |
| DimmingValue | form | double? | No | |
| Power | form | double? | No | |
| LuminousIntensity | form | double? | No | |
| Temperature | form | double? | No | |
| PowerConsumption | form | double? | No | |
| WorkingTimeMins | form | double? | No | |
| Version | form | string | No | |
| PowerFactor | form | double? | No | |
| PowerFreq | form | double? | No | |
| DeviceType | form | string | No | |
| TempTimePlanIsExcute | form | int? | No | |
| RemoteEndPoint | form | string | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Light/QueryLightHisData HTTP/1.1
Host: 188.68.237.94
Accept: application/json
Content-Type: application/json
Content-Length: length
{"Light10":0,"Days":0,"Command":"String","Options":{"SendNoWait":false,"RequestTimeout":0,"Debug":false}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"Data":[{"HisId":0,"LightId":0,"Address":"String","UpUID":"String","SampTime":"0001-01-01T00:00:00.0000000+01:00","LocalDate":"0001-01-01T00:00:00.0000000+01:00","Current":0,"Voltage":0,"DimmingValue":0,"Power":0,"LuminousIntensity":0,"Temperature":0,"PowerConsumption":0,"WorkingTimeMins":0,"Version":"String","PowerFactor":0,"PowerFreq":0,"DeviceType":"String","TempTimePlanIsExcute":0,"RemoteEndPoint":"String"}],"Command":"String","Status":"String","ErrorMessage":"String","ErrList":[0],"DeviceList":[{"ActionName":"String","DeviceNumber":"String","ActionResult":"String","ByteData":"AA==","ByteResult":"AA==","ErrorMessage":"String","ConnectStatus":0,"ByteDataHstr":"00"}]}