GET DeviceConfiguration?serialNo={serialNo}&deviceType={deviceType}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
serialNo

string

Required

deviceType

LabCare.Data.Enums.HwDeviceType

Required

Body Parameters

None.

Response Information

Resource Description

LabCare.Data.WebApi.Models.DeviceConfig
NameDescriptionTypeAdditional information
srno

string

None.

sid

integer

None.

devname

string

None.

devtype

LabCare.Data.Enums.HwDeviceType

None.

sd

integer

None.

tz

string

None.

params

Collection of LabCare.Data.WebApi.Models.ParameterConfiguration

None.

events

Collection of LabCare.Data.WebApi.Models.DeviceEventsConfig

None.

gt

LabCare.Data.Enums.GasType

None.

wght

decimal number

None.

gp

decimal number

None.

persistant_interval

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "srno": "sample string 1",
  "sid": 2,
  "devname": "sample string 3",
  "devtype": 0,
  "sd": 4,
  "tz": "sample string 5",
  "params": [
    {
      "pid": 1,
      "pcid": 1,
      "tag": "sample string 1",
      "uomid": 2,
      "sv": 1.1,
      "hal": 1.1,
      "lal": 1.1,
      "htl": 1.1,
      "ltl": 1.1,
      "ail": 1,
      "n": "sample string 3",
      "uom": "sample string 4",
      "im": true,
      "alm_supress": true,
      "type": 1,
      "isms": true,
      "icall": true,
      "dsms": 1,
      "dcall": 1
    },
    {
      "pid": 1,
      "pcid": 1,
      "tag": "sample string 1",
      "uomid": 2,
      "sv": 1.1,
      "hal": 1.1,
      "lal": 1.1,
      "htl": 1.1,
      "ltl": 1.1,
      "ail": 1,
      "n": "sample string 3",
      "uom": "sample string 4",
      "im": true,
      "alm_supress": true,
      "type": 1,
      "isms": true,
      "icall": true,
      "dsms": 1,
      "dcall": 1
    }
  ],
  "events": [
    {
      "ecid": 1,
      "tagid": 2,
      "eid": 3,
      "txt": "sample string 4"
    },
    {
      "ecid": 1,
      "tagid": 2,
      "eid": 3,
      "txt": "sample string 4"
    }
  ],
  "gt": 0,
  "wght": 1.1,
  "gp": 1.1,
  "persistant_interval": 6
}

application/xml, text/xml

Sample:
<DeviceConfig xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LabCare.Data.WebApi.Models">
  <DeviceModelId>4</DeviceModelId>
  <DeviceName>sample string 3</DeviceName>
  <DeviceType>None</DeviceType>
  <Events>
    <DeviceEventsConfig>
      <EventID>3</EventID>
      <ReferenceID>1</ReferenceID>
      <TagID>2</TagID>
      <Text>sample string 4</Text>
    </DeviceEventsConfig>
    <DeviceEventsConfig>
      <EventID>3</EventID>
      <ReferenceID>1</ReferenceID>
      <TagID>2</TagID>
      <Text>sample string 4</Text>
    </DeviceEventsConfig>
  </Events>
  <GasPressure>1.1</GasPressure>
  <GasTotalWeight>1.1</GasTotalWeight>
  <GasType>None</GasType>
  <Parameters>
    <ParameterConfiguration>
      <AlarmIntervalLimit>1</AlarmIntervalLimit>
      <DelayInNotificationCall>1</DelayInNotificationCall>
      <DelayInNotificationSMS>1</DelayInNotificationSMS>
      <HighAlarmLimit>1.1</HighAlarmLimit>
      <HighTolleranceLimit>1.1</HighTolleranceLimit>
      <IsCallEnabled>true</IsCallEnabled>
      <IsMonitor>true</IsMonitor>
      <IsSMSEnabled>true</IsSMSEnabled>
      <LowAlarmLimit>1.1</LowAlarmLimit>
      <LowTolleranceLimit>1.1</LowTolleranceLimit>
      <ParameterConfigId>1</ParameterConfigId>
      <ParameterId>1</ParameterId>
      <ParameterName>sample string 3</ParameterName>
      <SetValue>1.1</SetValue>
      <SupressAlarm>true</SupressAlarm>
      <TagId>sample string 1</TagId>
      <Type>Analog</Type>
      <UOM>sample string 4</UOM>
      <UOMId>2</UOMId>
    </ParameterConfiguration>
    <ParameterConfiguration>
      <AlarmIntervalLimit>1</AlarmIntervalLimit>
      <DelayInNotificationCall>1</DelayInNotificationCall>
      <DelayInNotificationSMS>1</DelayInNotificationSMS>
      <HighAlarmLimit>1.1</HighAlarmLimit>
      <HighTolleranceLimit>1.1</HighTolleranceLimit>
      <IsCallEnabled>true</IsCallEnabled>
      <IsMonitor>true</IsMonitor>
      <IsSMSEnabled>true</IsSMSEnabled>
      <LowAlarmLimit>1.1</LowAlarmLimit>
      <LowTolleranceLimit>1.1</LowTolleranceLimit>
      <ParameterConfigId>1</ParameterConfigId>
      <ParameterId>1</ParameterId>
      <ParameterName>sample string 3</ParameterName>
      <SetValue>1.1</SetValue>
      <SupressAlarm>true</SupressAlarm>
      <TagId>sample string 1</TagId>
      <Type>Analog</Type>
      <UOM>sample string 4</UOM>
      <UOMId>2</UOMId>
    </ParameterConfiguration>
  </Parameters>
  <PersistantInterval>6</PersistantInterval>
  <SerialNo>sample string 1</SerialNo>
  <TimeZone>sample string 5</TimeZone>
  <VirtualId>2</VirtualId>
</DeviceConfig>