SSHost

<back to all web services

GetLightsStatusV2Request

Requires Authentication
Required role:ApiUser
The following routes are available for this service:
All Verbs/Light/GetLightsStatus/V2
GetLightsStatusV2Request Parameters:
NameParameterData TypeRequiredDescription
OrgNamequerystringNo
AreaNamequerystringNo
LineNamequerystringNo
SectionNamequerystringNo
GatewayUIDquerylongNo
PageIndexqueryintNo
PageSizequeryintNo
IBaseRequest Parameters:
NameParameterData TypeRequiredDescription
CommandformstringNo
OptionsformRequestOptionsNo
RequestOptions Parameters:
NameParameterData TypeRequiredDescription
SendNoWaitformboolNo
RequestTimeoutformintNo
DebugformboolNo
GetLightsStatusV2Response Parameters:
NameParameterData TypeRequiredDescription
DataformList<LightStatusV2>No
IBaseResult Parameters:
NameParameterData TypeRequiredDescription
CommandformstringNo
StatusformstringNo
ErrorMessageformstringNo
ErrListformList<long>No
DeviceListformList<DeviceData>No
DeviceData Parameters:
NameParameterData TypeRequiredDescription
ActionNameformstringNo
DeviceNumberformstringNo
ActionResultformstringNo
ByteDataformbyte[]No
ByteResultformbyte[]No
ErrorMessageformstringNo
ConnectStatusformintNo
ByteDataHstrformstringNo
LightStatusV2 Parameters:
NameParameterData TypeRequiredDescription
LightIdformlongNo
Light16formstringNo
Light10formlongNo
SampleTimeformDateTime?No
LocalTimeformDateTime?No
VersionformstringNo
DimmingValueformdouble?No
Voltageformdouble?No
Currentformdouble?No
Powerformdouble?No
PowerFactorformstringNo
ColorTemperatureformdouble?No
Temperatureformdouble?No
LuminousIntensityformdouble?No
NorminalPowerformdouble?No
PowerFreqformint?No
WorkingTimeformdouble?No
PowerConsumptionformdouble?No
Longitudeformdouble?No
Latitudeformdouble?No
Longitude2formdouble?No
Latitude2formdouble?No
DeviceTypeformstringNo
PhysicalAddressformlongNo
OrgformstringNo
AreaformstringNo
LineformstringNo
SectionformstringNo
GatewayNameformstringNo
GatewayAddressformstringNo
GatewayUIDformlongNo
GroupNumberformstringNo
PowerModelformstringNo
LightFunctionformintNo
SectionIdformlongNo
StatusformstringNo
OfflineMinsformdoubleNo

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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Light/GetLightsStatus/V2 HTTP/1.1 
Host: 188.68.237.94 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"OrgName":"String","AreaName":"String","LineName":"String","SectionName":"String","GatewayUID":0,"PageIndex":0,"PageSize":0,"Command":"String","Options":{"SendNoWait":false,"RequestTimeout":0,"Debug":false}}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Data":[{"LightId":0,"Light16":"String","Light10":0,"SampleTime":"0001-01-01T00:00:00.0000000+01:00","LocalTime":"0001-01-01T00:00:00.0000000+01:00","Version":"String","DimmingValue":0,"Voltage":0,"Current":0,"Power":0,"PowerFactor":"0.0","ColorTemperature":0,"Temperature":0,"LuminousIntensity":0,"NorminalPower":0,"PowerFreq":0,"WorkingTime":0,"PowerConsumption":0,"Longitude":0,"Latitude":0,"Longitude2":0,"Latitude2":0,"DeviceType":"String","PhysicalAddress":0,"Org":"String","Area":"String","Line":"String","Section":"String","GatewayName":"String","GatewayAddress":"String","GatewayUID":0,"GroupNumber":"String","PowerModel":"String","LightFunction":0,"SectionId":0,"Status":"String","OfflineMins":0}],"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"}]}