Konstanten

Diese Seite enthält alle in SixML definierten Konstanten als JavaScript Export.


// Comm constants 
// ConnectionTypes
var ConnectionTypeEthernet                                       = 1;
var ConnectionTypeSerial                                         = 2;
var ConnectionTypeCAN                                            = 3;
var ConnectionTypeWiFi                                           = 10;
var ConnectionType802_15_4                                       = 11;
var ConnectionTypeBluetooth                                      = 12;
var ConnectionTypeZigBee                                         = 13;
var ConnectionType868                                            = 30;
var ConnectionTypeTCPTunnel                                      = 40;
var ConnectionTypeHTTP                                           = 41;
var ConnectionTypeLoopback                                       = 50;

// SixML constants 
// UnitTypes
var UnitTypeEndOfPacket                                          = 0;
var UnitTypePadding                                              = 1;
var UnitTypeSDLVersion                                           = 2;
var UnitTypeClientID                                             = 3;
var UnitTypeSessionID                                            = 4;
var UnitTypeMessageCounter                                       = 6;
var UnitTypeEventID                                              = 7;
var UnitTypeCount                                                = 8;
var UnitTypeEncrypted                                            = 10;
var UnitTypeTimeStamp                                            = 11;
var UnitTypeKeyID                                                = 12;
var UnitTypeZoneID                                               = 13;
var UnitTypeInitializationVector                                 = 14;
var UnitTypeMessageDiscoveryInformation                          = 21;
var UnitTypeMessageDiscoveryRequest                              = 22;
var UnitTypeMessageDiscoveryResponse                             = 23;
var UnitTypeMessageDescriptionRequest                            = 24;
var UnitTypeMessageDescriptionResponse                           = 25;
var UnitTypeMessageControlRequest                                = 26;
var UnitTypeMessageControlResponse                               = 27;
var UnitTypeMessageEventInformation                              = 28;
var UnitTypeImplicitValueDescriptionContainer                    = 30;
var UnitTypeImplicitValueType                                    = 31;
var UnitTypeImplicitValueID                                      = 32;
var UnitTypeValueType                                            = 33;
var UnitTypeValueName                                            = 34;
var UnitTypeValueUnit                                            = 35;
var UnitTypeValue                                                = 36;
var UnitTypeValueMin                                             = 37;
var UnitTypeValueMax                                             = 38;
var UnitTypeDeviceDescriptionDate                                = 41;
var UnitTypeDeviceID                                             = 42;
var UnitTypeDeviceExpectedLifeTime                               = 43;
var UnitTypeDeviceName                                           = 44;
var UnitTypeDeviceFlags                                          = 45;
var UnitTypeDeviceServiceTypeList                                = 46;
var UnitTypeDeviceServiceExtendedTypeList                        = 47;
var UnitTypeDeviceLocation                                       = 48;
var UnitTypeDeviceDescriptionTag                                 = 49;
var UnitTypeGatewayID                                            = 51;
var UnitTypeHopAccessID                                          = 52;
var UnitTypeHopAccessAddress                                     = 53;
var UnitTypeHopAccessPort                                        = 54;
var UnitTypeHopAccessConnectionType                              = 55;
var UnitTypeHopResponseID                                        = 62;
var UnitTypeHopResponseAddress                                   = 63;
var UnitTypeHopResponsePort                                      = 64;
var UnitTypeServiceDescriptionContainer                          = 70;
var UnitTypeServiceContainer                                     = 71;
var UnitTypeServiceID                                            = 72;
var UnitTypeServiceType                                          = 73;
var UnitTypeServiceName                                          = 74;
var UnitTypeServiceFlags                                         = 75;
var UnitTypeServiceValue                                         = 76;
var UnitTypeServiceDescriptionTag                                = 79;
var UnitTypeActionDescriptionContainer                           = 80;
var UnitTypeActionContainer                                      = 81;
var UnitTypeActionID                                             = 82;
var UnitTypeActionName                                           = 84;
var UnitTypeArgumentDescriptionContainer                         = 90;
var UnitTypeArgumentContainer                                    = 91;
var UnitTypeArgumentID                                           = 92;
var UnitTypeArgumentProperties                                   = 93;
var UnitTypeCompositeDescriptionContainer                        = 100;
var UnitTypeCompositePartDescriptionContainer                    = 101;
var UnitTypeCompositePartID                                      = 102;
var UnitTypeCompositePartProperties                              = 103;
var UnitTypePropertyDescriptionContainer                         = 110;
var UnitTypePropertyProperties                                   = 113;
var UnitTypeElementDescriptionContainer                          = 120;
var UnitTypeElementValueIDMask                                   = 121;
var UnitTypeElementValues                                        = 122;
var UnitTypeElementListValues                                    = 123;
var UnitTypeElementListIndex                                     = 124;
var UnitTypeElementListIndexMask                                 = 125;
var UnitTypeElementListOperationProperties                       = 126;
var UnitTypeValueInputOperator                                   = 130;
var UnitTypeValueOutputOperator                                  = 131;
var UnitTypeConditionOperator                                    = 132;
// MessageTypes
var MessageTypeDeviceAnnouncement                                = 1;
var MessageTypeDeviceRemoval                                     = 2;
var MessageTypeDeviceSearch                                      = 3;
var MessageTypePing                                              = 4;
var MessageTypeDeviceDescription                                 = 20;
var MessageTypeServiceDescription                                = 21;
var MessageTypeItemDescription                                   = 22;
var MessageTypeGroupDescription                                  = 23;
var MessageTypeSetDeviceName                                     = 30;
var MessageTypeSetDeviceLocation                                 = 31;
var MessageTypeInvokeAction                                      = 32;
var MessageTypeServiceValue                                      = 33;
var MessageTypeSetServiceValue                                   = 34;
var MessageTypeItemMetaValues                                    = 40;
var MessageTypeItemDescriptiveValues                             = 41;
var MessageTypeItemPropertyValues                                = 42;
var MessageTypeItemSetPropertyValues                             = 43;
var MessageTypeGroupMetaValues                                   = 50;
var MessageTypeGroupDescriptiveValues                            = 51;
var MessageTypeGroupPropertyValues                               = 52;
var MessageTypeGroupSetPropertyValues                            = 53;
// ImplicitValueTypes
var ImplicitValueTypeCondition                                   = 1;
var ImplicitValueTypeConstant                                    = 2;
var ImplicitValueTypeDeviceName                                  = 10;
var ImplicitValueTypeDeviceLocation                              = 11;
var ImplicitValueTypeServiceValue                                = 20;
var ImplicitValueTypeItemValue                                   = 21;
var ImplicitValueTypeGroupValue                                  = 22;
// ResultTypes
var ResultTypeOk                                                 = 1;
var ResultTypeUnknownError                                       = 2;
var ResultTypeRequestInvalid                                     = 3;
var ResultTypeResponseInvalid                                    = 4;
var ResultTypeResponseTimedOut                                   = 5;
var ResultTypeInternalDeviceError                                = 20;
var ResultTypeRequestNotSupported                                = 21;
var ResultTypeServiceIDInvalid                                   = 30;
var ResultTypeServiceValueInvalid                                = 31;
var ResultTypeServiceInactive                                    = 32;
var ResultTypeServiceValueReadOnly                               = 33;
var ResultTypeActionIDInvalid                                    = 40;
var ResultTypeArgumentIDInvalid                                  = 50;
var ResultTypeArgumentValueInvalid                               = 51;
var ResultTypeArgumentCountInvalid                               = 52;
// ValueTypes
var ValueTypeNotUsed                                             = 0;
var ValueTypeUInt8                                               = 1;
var ValueTypeInt8                                                = 2;
var ValueTypeUInt16                                              = 3;
var ValueTypeInt16                                               = 4;
var ValueTypeUInt32                                              = 5;
var ValueTypeInt32                                               = 6;
var ValueTypeString                                              = 20;
var ValueTypeURL                                                 = 21;
var ValueTypeBoolean                                             = 30;
var ValueTypeDateTime                                            = 31;
var ValueTypeComposite                                           = 40;
var ValueTypeImplicitValue                                       = 41;
var ValueTypeControlRequest                                      = 42;
var ValueTypeByteArray                                           = 65;
var ValueTypeInt8List                                            = 66;
var ValueTypeUInt16List                                          = 67;
var ValueTypeInt16List                                           = 68;
var ValueTypeUInt32List                                          = 69;
var ValueTypeInt32List                                           = 70;
var ValueTypeStringList                                          = 84;
var ValueTypeURLList                                             = 85;
var ValueTypeBooleanList                                         = 94;
var ValueTypeDateTimeList                                        = 95;
// ValueUnits
var ValueUnitDivider                                             = 0;
var ValueUnitExponent1                                           = 1;
var ValueUnitExponent2                                           = 2;
var ValueUnitExponent3                                           = 3;
var ValueUnitExponent4                                           = 4;
var ValueUnitExponent5                                           = 5;
var ValueUnitExponent6                                           = 6;
var ValueUnitExponent7                                           = 7;
var ValueUnitExponent8                                           = 8;
var ValueUnitExponent9                                           = 9;
var ValueUnitExponent10                                          = 10;
var ValueUnitBase1                                               = 11;
var ValueUnitBase2                                               = 12;
var ValueUnitBase3                                               = 13;
var ValueUnitBase4                                               = 14;
var ValueUnitBase5                                               = 15;
var ValueUnitBase6                                               = 16;
var ValueUnitBase7                                               = 17;
var ValueUnitBase8                                               = 18;
var ValueUnitBase9                                               = 19;
var ValueUnitBase10                                              = 20;
var ValueUnitBase1000                                            = 21;
var ValueUnitBase1024                                            = 22;
var ValueUnitMeter                                               = 30;
var ValueUnitKilogramm                                           = 31;
var ValueUnitSeconds                                             = 32;
var ValueUnitAmpere                                              = 33;
var ValueUnitKelvin                                              = 34;
var ValueUnitMol                                                 = 35;
var ValueUnitCandela                                             = 36;
var ValueUnitRadiant                                             = 40;
var ValueUnitSteradiant                                          = 41;
var ValueUnitHertz                                               = 42;
var ValueUnitNewton                                              = 43;
var ValueUnitPascal                                              = 44;
var ValueUnitJoule                                               = 45;
var ValueUnitWatt                                                = 46;
var ValueUnitCoulomb                                             = 47;
var ValueUnitVolt                                                = 48;
var ValueUnitFarad                                               = 49;
var ValueUnitOhm                                                 = 50;
var ValueUnitSiemens                                             = 51;
var ValueUnitWeber                                               = 52;
var ValueUnitTesla                                               = 53;
var ValueUnitHenry                                               = 54;
var ValueUnitDegreeCelsius                                       = 55;
var ValueUnitLumen                                               = 56;
var ValueUnitLux                                                 = 57;
var ValueUnitBecquerel                                           = 58;
var ValueUnitGray                                                = 59;
var ValueUnitSievert                                             = 60;
var ValueUnitKatal                                               = 61;
var ValueUnitPercent                                             = 70;
var ValueUnitPromille                                            = 71;
var ValueUnitRounds                                              = 72;
var ValueUnitEvents                                              = 73;
var ValueUnitBit                                                 = 74;
var ValueUnitByte                                                = 75;
var ValueUnitDegree                                              = 76;
var ValueUnitMinute                                              = 80;
var ValueUnitHour                                                = 81;
var ValueUnitDay                                                 = 82;
var ValueUnitWeek                                                = 83;
var ValueUnitMonth                                               = 84;
var ValueUnitYear                                                = 85;
var ValueUnitDayMask                                             = 86;
var ValueUnitSemantic                                            = 90;
var ValueUnitLocationID                                          = 91;
var ValueUnitLocationArray                                       = 92;

// Device constants 
// DeviceTags
var DeviceTagLamp                                                = 500;
var DeviceTagOutdoorLamp                                         = 501;
var DeviceTagDimmableLamp                                        = 502;
var DeviceTagRGBLamp                                             = 503;
var DeviceTagShutter                                             = 505;
var DeviceTagClimateControl                                      = 510;
var DeviceTagRoomHeater                                          = 511;
var DeviceTagVentilator                                          = 512;
var DeviceTagFloorHeating                                        = 513;
var DeviceTagBoiler                                              = 514;
var DeviceTagCentralHeater                                       = 515;
var DeviceTagWallSocket                                          = 530;
var DeviceTagSwitch                                              = 550;
var DeviceTagDimmableSwitch                                      = 551;
var DeviceTagToggleSwitch                                        = 552;
var DeviceTagSensor                                              = 600;
var DeviceTagOutdoorSensor                                       = 601;
var DeviceTagEmbeddedDevice                                      = 610;
var DeviceTagRaspberryPI                                         = 611;
var DeviceTagGadgeteer                                           = 612;
var DeviceTagArduino                                             = 613;
var DeviceTagStove                                               = 1000;
var DeviceTagMicrowave                                           = 1001;
var DeviceTagFreezer                                             = 1002;
var DeviceTagRefrigerator                                        = 1003;
var DeviceTagToaster                                             = 1004;
var DeviceTagCoffeeMaker                                         = 1005;
var DeviceTagFryer                                               = 1006;
var DeviceTagMixer                                               = 1007;
var DeviceTagDishWasher                                          = 1008;
var DeviceTagWashingMachine                                      = 1100;
var DeviceTagDryer                                               = 1101;
var DeviceTagShaver                                              = 1102;
var DeviceTagClock                                               = 1200;
var DeviceTagTV                                                  = 1500;
var DeviceTagRadio                                               = 1501;
var DeviceTagAVReceiver                                          = 1502;
var DeviceTagDVD                                                 = 1503;
var DeviceTagBlueRay                                             = 1504;
var DeviceTagPictureFrame                                        = 1505;
var DeviceTagPC                                                  = 1600;
var DeviceTagTablet                                              = 1601;
var DeviceTagSmartphone                                          = 1602;
var DeviceTagEReader                                             = 1603;
var DeviceTagWeather                                             = 2000;
var DeviceTagStock                                               = 2001;
var DeviceTagNews                                                = 2002;
var DeviceTagInternet                                            = 2100;
var DeviceTagPIM                                                 = 2200;
var DeviceTagCar                                                 = 2500;
var DeviceTagTruck                                               = 2501;
var DeviceTagRecreationalVehicle                                 = 2502;
var DeviceTagPublicTransport                                     = 2503;
var DeviceTagMotorcycle                                          = 2504;
var DeviceTagScooter                                             = 2505;
var DeviceTagBike                                                = 2506;
var DeviceTagShip                                                = 2507;
var DeviceTagTrain                                               = 2508;
var DeviceTagAirplane                                            = 2509;
// LocationIDs
var LocationIDVirtual                                            = 0;
var LocationIDNomadic                                            = 1;
var LocationIDInternet                                           = 2;
var LocationIDHomeZone                                           = 3;
var LocationIDPublicZone                                         = 4;
var LocationIDGuestZone                                          = 5;
var LocationIDLivingRoom                                         = 10;
var LocationIDDiningRoom                                         = 11;
var LocationIDBedRoom                                            = 12;
var LocationIDGuestRoom                                          = 13;
var LocationIDChildrensRoom                                      = 14;
var LocationIDKitchen                                            = 15;
var LocationIDBathRoom                                           = 16;
var LocationIDToilet                                             = 17;
var LocationIDFloor                                              = 18;
var LocationIDOffice                                             = 25;
var LocationIDConferenceRoom                                     = 26;
var LocationIDServerRoom                                         = 27;
var LocationIDBasement                                           = 30;
var LocationIDGarage                                             = 31;
var LocationIDChamber                                            = 32;
var LocationIDToolShed                                           = 33;
var LocationIDEngineeringRoom                                    = 34;
var LocationIDOutdoor                                            = 40;
var LocationIDBalcony                                            = 41;
var LocationIDTerrace                                            = 42;
var LocationIDCar                                                = 50;
var LocationIDTruck                                              = 51;
var LocationIDRecreationalVehicle                                = 52;
var LocationIDPublicTransport                                    = 53;
var LocationIDMotorcycle                                         = 54;
var LocationIDScooter                                            = 55;
var LocationIDBike                                               = 56;
var LocationIDShip                                               = 57;
var LocationIDTrain                                              = 58;
var LocationIDAirplane                                           = 59;
var LocationIDPublicBuilding                                     = 80;
var LocationIDParking                                            = 81;
var LocationIDTransportBuilding                                  = 82;
var LocationIDRestaurant                                         = 83;
var LocationIDEntertainment                                      = 84;
var LocationIDShoppingPlace                                      = 85;
var LocationIDServicePlace                                       = 86;

// Service constants 
// ServiceTypes
var ServiceTypeIdentification                                    = 1;
var ServiceTypeAttribute                                         = 2;
var ServiceTypePersistence                                       = 3;
var ServiceTypeKeyManagement                                     = 4;
var ServiceTypeCommManagement                                    = 10;
var ServiceTypeCommStatus                                        = 11;
var ServiceTypeCommStatistics                                    = 12;
var ServiceTypeSessionManagement                                 = 15;
var ServiceTypeLocalization                                      = 16;
var ServiceTypeUsage                                             = 17;
var ServiceTypeServiceManagement                                 = 20;
var ServiceTypeConnectedOutput                                   = 21;
var ServiceTypeConnectedInput                                    = 22;

var ServiceTypeDigitalInput                                      = 30;
var ServiceTypeRelativeInput                                     = 31;
var ServiceTypeEventInput                                        = 32;
var ServiceTypeStateInput                                        = 33;
var ServiceTypeTextInput                                         = 34;
var ServiceTypeMediaInput                                        = 35;
var ServiceTypeSensorInput                                       = 36;
var ServiceTypeMultipleInput                                     = 37;
var ServiceTypeDigitalOutput                                     = 40;
var ServiceTypeRelativeOutput                                    = 41;
var ServiceTypeCommandOutput                                     = 42;
var ServiceTypeStateOutput                                       = 43;
var ServiceTypeTextOutput                                        = 44;
var ServiceTypeMediaOutput                                       = 45;
var ServiceTypeActuatorOutput                                    = 46;
var ServiceTypeRGBOutput                                         = 48;

var ServiceTypeCountdown                                         = 70;
var ServiceTypeProgress                                          = 71;
var ServiceTypeElectricity                                       = 72;
var ServiceTypeConsumption                                       = 73;
var ServiceTypeGPS                                               = 74;
var ServiceTypeLocalPosition                                     = 75;
var ServiceTypeOrientation                                       = 76;
var ServiceTypeDriveInformation                                  = 77;
var ServiceTypeErrorInformation                                  = 78;
var ServiceTypeWeatherInformation                                = 80;
var ServiceTypePriceInformation                                  = 81;
var ServiceTypeMessageInformation                                = 82;
var ServiceTypeRating                                            = 83;
var ServiceTypeTranslation                                       = 84;

var ServiceTypeMediaInformation                                  = 90;
var ServiceTypeMediaControl                                      = 91;
var ServiceTypeMediaList                                         = 92;

var ServiceTypeTaskManagement                                    = 100;
var ServiceTypeContactManagement                                 = 101;
var ServiceTypeCalendarManagement                                = 102;
var ServiceTypeMailInformation                                   = 103;

var ServiceTypeClock                                             = 110;
var ServiceTypeZoneInformation                                   = 111;
var ServiceTypeImplicitValueManagement                           = 112;
var ServiceTypeConditionManagement                               = 113;
var ServiceTypeActivityManagement                                = 114;
var ServiceTypeScenarioManagement                                = 115;
var ServiceTypeScheduleManagement                                = 116;
var ServiceTypeRuleManagement                                    = 117;
var ServiceTypeGroupManagement                                   = 118;
var ServiceTypeUserManagement                                    = 119;
var ServiceTypeHistory                                           = 120;

// ServiceTags
var ServiceTagContact                                            = 3000;
var ServiceTagDoorContact                                        = 3001;
var ServiceTagWindowContact                                      = 3002;
var ServiceTagSwitchContact                                      = 3003;
var ServiceTagWallSocketState                                    = 3004;
var ServiceTagDeviceOnOffState                                   = 3005;
var ServiceTagTrunkContact                                       = 3006;
var ServiceTagHatchContact                                       = 3007;
var ServiceTagRelativeBrightness                                 = 3100;
var ServiceTagRelativeHumidity                                   = 3101;
var ServiceTagRelativeVolume                                     = 3102;
var ServiceTagRelativeActivity                                   = 3103;
var ServiceTagRelativePotentiometer                              = 3104;
var ServiceTagRelativeBattery                                    = 3105;
var ServiceTagRelativeFreshWaterFillLevel                        = 3110;
var ServiceTagRelativeSewageWaterFillLevel                       = 3111;
var ServiceTagRelativeGasFillLevel                               = 3112;
var ServiceTagRelativeFuelFillLevel                              = 3113;
var ServiceTagSensorAmbientTemperature                           = 3600;
var ServiceTagSensorAbsoluteBrightness                           = 3601;
var ServiceTagSensorAirPressure                                  = 3602;
var ServiceTagSensorDistance                                     = 3603;
var ServiceTagSensorRotation                                     = 3604;
var ServiceTagSensorDust                                         = 3605;
var ServiceTagSensorGasConcentration                             = 3610;
var ServiceTagSensorCOConcentration                              = 3611;
var ServiceTagSensorCO2Concentration                             = 3612;
var ServiceTagSensorH2Concentration                              = 3613;
var ServiceTagSensorAlcoholConcentration                         = 3614;
var ServiceTagSensorSmokeConcentration                           = 3615;
var ServiceTagSensorLPGConcentration                             = 3616;
var ServiceTagSensorPropaneConcentration                         = 3617;
var ServiceTagSensorMethaneConcentration                         = 3618;
var ServiceTagSensorAvailableDiskSpace                           = 3630;
var ServiceTagSensorUsedDiskSpace                                = 3631;
var ServiceTagSensorAvailableDatabaseSpace                       = 3632;
var ServiceTagSensorUsedDatabaseSpace                            = 3633;
var ServiceTagSensorDeviceTemperature                            = 3700;
var ServiceTagSensorWaterTemperature                             = 3701;
var ServiceTagLight                                              = 4000;
var ServiceTagWallSocketSwitch                                   = 4004;
var ServiceTagDeviceOnOffSwitch                                  = 4005;
var ServiceTagIOCustom                                           = 4099;
var ServiceTagDimmableLight                                      = 4100;
var ServiceTagRelativeShutterClosedLevel                         = 4101;
var ServiceTagRelativeFanLevel                                   = 4102;
var ServiceTagActuatorTemperature                                = 4600;
var ServiceTagActuatorRPM                                        = 4601;
var ServiceTagConsumptionElectricity                             = 7300;
var ServiceTagConsumptionWater                                   = 7301;
var ServiceTagConsumptionOil                                     = 7302;
var ServiceTagConsumptionFuel                                    = 7303;
var ServiceTagConsumptionGas                                     = 7304;
var ServiceTagConsumptionAmount                                  = 7305;
var ServiceTagConsumptionElectricityRange                        = 7320;
var ServiceTagConsumptionFuelRange                               = 7323;
var ServiceTagConsumptionMileage                                 = 7340;
var ServiceTagConsumptionDataVolume                              = 7350;
var ServiceTagConsumptionTime                                    = 7351;
// ConnectionTypes
function connectionTypeToString(value) 
{
    switch (value)
    {
        case 1: return "ConnectionTypeEthernet";
        case 2: return "ConnectionTypeSerial";
        case 3: return "ConnectionTypeCAN";
        case 10: return "ConnectionTypeWiFi";
        case 11: return "ConnectionType802_15_4";
        case 12: return "ConnectionTypeBluetooth";
        case 13: return "ConnectionTypeZigBee";
        case 30: return "ConnectionType868";
        case 40: return "ConnectionTypeTCPTunnel";
        case 41: return "ConnectionTypeHTTP";
        case 50: return "ConnectionTypeLoopback";
    }
    return "Unknown (" + value + ")";
}
// UnitTypes
function unitTypeToString(value) 
{
    switch (value)
    {
        case 0: return "UnitTypeEndOfPacket";
        case 1: return "UnitTypePadding";
        case 2: return "UnitTypeSDLVersion";
        case 3: return "UnitTypeClientID";
        case 4: return "UnitTypeSessionID";
        case 6: return "UnitTypeMessageCounter";
        case 7: return "UnitTypeEventID";
        case 8: return "UnitTypeCount";
        case 10: return "UnitTypeEncrypted";
        case 11: return "UnitTypeTimeStamp";
        case 12: return "UnitTypeKeyID";
        case 13: return "UnitTypeZoneID";
        case 14: return "UnitTypeInitializationVector";
        case 21: return "UnitTypeMessageDiscoveryInformation";
        case 22: return "UnitTypeMessageDiscoveryRequest";
        case 23: return "UnitTypeMessageDiscoveryResponse";
        case 24: return "UnitTypeMessageDescriptionRequest";
        case 25: return "UnitTypeMessageDescriptionResponse";
        case 26: return "UnitTypeMessageControlRequest";
        case 27: return "UnitTypeMessageControlResponse";
        case 28: return "UnitTypeMessageEventInformation";
        case 30: return "UnitTypeImplicitValueDescriptionContainer";
        case 31: return "UnitTypeImplicitValueType";
        case 32: return "UnitTypeImplicitValueID";
        case 33: return "UnitTypeValueType";
        case 34: return "UnitTypeValueName";
        case 35: return "UnitTypeValueUnit";
        case 36: return "UnitTypeValue";
        case 37: return "UnitTypeValueMin";
        case 38: return "UnitTypeValueMax";
        case 41: return "UnitTypeDeviceDescriptionDate";
        case 42: return "UnitTypeDeviceID";
        case 43: return "UnitTypeDeviceExpectedLifeTime";
        case 44: return "UnitTypeDeviceName";
        case 45: return "UnitTypeDeviceFlags";
        case 46: return "UnitTypeDeviceServiceTypeList";
        case 47: return "UnitTypeDeviceServiceExtendedTypeList";
        case 48: return "UnitTypeDeviceLocation";
        case 49: return "UnitTypeDeviceDescriptionTag";
        case 51: return "UnitTypeGatewayID";
        case 52: return "UnitTypeHopAccessID";
        case 53: return "UnitTypeHopAccessAddress";
        case 54: return "UnitTypeHopAccessPort";
        case 55: return "UnitTypeHopAccessConnectionType";
        case 62: return "UnitTypeHopResponseID";
        case 63: return "UnitTypeHopResponseAddress";
        case 64: return "UnitTypeHopResponsePort";
        case 70: return "UnitTypeServiceDescriptionContainer";
        case 71: return "UnitTypeServiceContainer";
        case 72: return "UnitTypeServiceID";
        case 73: return "UnitTypeServiceType";
        case 74: return "UnitTypeServiceName";
        case 75: return "UnitTypeServiceFlags";
        case 76: return "UnitTypeServiceValue";
        case 79: return "UnitTypeServiceDescriptionTag";
        case 80: return "UnitTypeActionDescriptionContainer";
        case 81: return "UnitTypeActionContainer";
        case 82: return "UnitTypeActionID";
        case 84: return "UnitTypeActionName";
        case 90: return "UnitTypeArgumentDescriptionContainer";
        case 91: return "UnitTypeArgumentContainer";
        case 92: return "UnitTypeArgumentID";
        case 93: return "UnitTypeArgumentProperties";
        case 100: return "UnitTypeCompositeDescriptionContainer";
        case 101: return "UnitTypeCompositePartDescriptionContainer";
        case 102: return "UnitTypeCompositePartID";
        case 103: return "UnitTypeCompositePartProperties";
        case 110: return "UnitTypePropertyDescriptionContainer";
        case 113: return "UnitTypePropertyProperties";
        case 120: return "UnitTypeElementDescriptionContainer";
        case 121: return "UnitTypeElementValueIDMask";
        case 122: return "UnitTypeElementValues";
        case 123: return "UnitTypeElementListValues";
        case 124: return "UnitTypeElementListIndex";
        case 125: return "UnitTypeElementListIndexMask";
        case 126: return "UnitTypeElementListOperationProperties";
        case 130: return "UnitTypeValueInputOperator";
        case 131: return "UnitTypeValueOutputOperator";
        case 132: return "UnitTypeConditionOperator";
    }
    return "Unknown (" + value + ")";
}
// MessageTypes
function messageTypeToString(value) 
{
    switch (value)
    {
        case 1: return "MessageTypeDeviceAnnouncement";
        case 2: return "MessageTypeDeviceRemoval";
        case 3: return "MessageTypeDeviceSearch";
        case 4: return "MessageTypePing";
        case 20: return "MessageTypeDeviceDescription";
        case 21: return "MessageTypeServiceDescription";
        case 22: return "MessageTypeItemDescription";
        case 23: return "MessageTypeGroupDescription";
        case 30: return "MessageTypeSetDeviceName";
        case 31: return "MessageTypeSetDeviceLocation";
        case 32: return "MessageTypeInvokeAction";
        case 33: return "MessageTypeServiceValue";
        case 34: return "MessageTypeSetServiceValue";
        case 40: return "MessageTypeItemMetaValues";
        case 41: return "MessageTypeItemDescriptiveValues";
        case 42: return "MessageTypeItemPropertyValues";
        case 43: return "MessageTypeItemSetPropertyValues";
        case 50: return "MessageTypeGroupMetaValues";
        case 51: return "MessageTypeGroupDescriptiveValues";
        case 52: return "MessageTypeGroupPropertyValues";
        case 53: return "MessageTypeGroupSetPropertyValues";
    }
    return "Unknown (" + value + ")";
}
// ImplicitValueTypes
function implicitValueTypeToString(value) 
{
    switch (value)
    {
        case 1: return "ImplicitValueTypeCondition";
        case 2: return "ImplicitValueTypeConstant";
        case 10: return "ImplicitValueTypeDeviceName";
        case 11: return "ImplicitValueTypeDeviceLocation";
        case 20: return "ImplicitValueTypeServiceValue";
        case 21: return "ImplicitValueTypeItemValue";
        case 22: return "ImplicitValueTypeGroupValue";
    }
    return "Unknown (" + value + ")";
}
// ResultTypes
function resultTypeToString(value) 
{
    switch (value)
    {
        case 1: return "ResultTypeOk";
        case 2: return "ResultTypeUnknownError";
        case 3: return "ResultTypeRequestInvalid";
        case 4: return "ResultTypeResponseInvalid";
        case 5: return "ResultTypeResponseTimedOut";
        case 20: return "ResultTypeInternalDeviceError";
        case 21: return "ResultTypeRequestNotSupported";
        case 30: return "ResultTypeServiceIDInvalid";
        case 31: return "ResultTypeServiceValueInvalid";
        case 32: return "ResultTypeServiceInactive";
        case 33: return "ResultTypeServiceValueReadOnly";
        case 40: return "ResultTypeActionIDInvalid";
        case 50: return "ResultTypeArgumentIDInvalid";
        case 51: return "ResultTypeArgumentValueInvalid";
        case 52: return "ResultTypeArgumentCountInvalid";
    }
    return "Unknown (" + value + ")";
}
// ValueTypes
function valueTypeToString(value) 
{
    switch (value)
    {
        case 0: return "ValueTypeNotUsed";
        case 1: return "ValueTypeUInt8";
        case 2: return "ValueTypeInt8";
        case 3: return "ValueTypeUInt16";
        case 4: return "ValueTypeInt16";
        case 5: return "ValueTypeUInt32";
        case 6: return "ValueTypeInt32";
        case 20: return "ValueTypeString";
        case 21: return "ValueTypeURL";
        case 30: return "ValueTypeBoolean";
        case 31: return "ValueTypeDateTime";
        case 40: return "ValueTypeComposite";
        case 41: return "ValueTypeImplicitValue";
        case 42: return "ValueTypeControlRequest";
        case 65: return "ValueTypeByteArray";
        case 66: return "ValueTypeInt8List";
        case 67: return "ValueTypeUInt16List";
        case 68: return "ValueTypeInt16List";
        case 69: return "ValueTypeUInt32List";
        case 70: return "ValueTypeInt32List";
        case 84: return "ValueTypeStringList";
        case 85: return "ValueTypeURLList";
        case 94: return "ValueTypeBooleanList";
        case 95: return "ValueTypeDateTimeList";
    }
    return "Unknown (" + value + ")";
}
// ValueUnits
function valueUnitToString(value) 
{
    switch (value)
    {
        case 0: return "ValueUnitDivider";
        case 1: return "ValueUnitExponent1";
        case 2: return "ValueUnitExponent2";
        case 3: return "ValueUnitExponent3";
        case 4: return "ValueUnitExponent4";
        case 5: return "ValueUnitExponent5";
        case 6: return "ValueUnitExponent6";
        case 7: return "ValueUnitExponent7";
        case 8: return "ValueUnitExponent8";
        case 9: return "ValueUnitExponent9";
        case 10: return "ValueUnitExponent10";
        case 11: return "ValueUnitBase1";
        case 12: return "ValueUnitBase2";
        case 13: return "ValueUnitBase3";
        case 14: return "ValueUnitBase4";
        case 15: return "ValueUnitBase5";
        case 16: return "ValueUnitBase6";
        case 17: return "ValueUnitBase7";
        case 18: return "ValueUnitBase8";
        case 19: return "ValueUnitBase9";
        case 20: return "ValueUnitBase10";
        case 21: return "ValueUnitBase1000";
        case 22: return "ValueUnitBase1024";
        case 30: return "ValueUnitMeter";
        case 31: return "ValueUnitKilogramm";
        case 32: return "ValueUnitSeconds";
        case 33: return "ValueUnitAmpere";
        case 34: return "ValueUnitKelvin";
        case 35: return "ValueUnitMol";
        case 36: return "ValueUnitCandela";
        case 40: return "ValueUnitRadiant";
        case 41: return "ValueUnitSteradiant";
        case 42: return "ValueUnitHertz";
        case 43: return "ValueUnitNewton";
        case 44: return "ValueUnitPascal";
        case 45: return "ValueUnitJoule";
        case 46: return "ValueUnitWatt";
        case 47: return "ValueUnitCoulomb";
        case 48: return "ValueUnitVolt";
        case 49: return "ValueUnitFarad";
        case 50: return "ValueUnitOhm";
        case 51: return "ValueUnitSiemens";
        case 52: return "ValueUnitWeber";
        case 53: return "ValueUnitTesla";
        case 54: return "ValueUnitHenry";
        case 55: return "ValueUnitDegreeCelsius";
        case 56: return "ValueUnitLumen";
        case 57: return "ValueUnitLux";
        case 58: return "ValueUnitBecquerel";
        case 59: return "ValueUnitGray";
        case 60: return "ValueUnitSievert";
        case 61: return "ValueUnitKatal";
        case 70: return "ValueUnitPercent";
        case 71: return "ValueUnitPromille";
        case 72: return "ValueUnitRounds";
        case 73: return "ValueUnitEvents";
        case 74: return "ValueUnitBit";
        case 75: return "ValueUnitByte";
        case 76: return "ValueUnitDegree";
        case 80: return "ValueUnitMinute";
        case 81: return "ValueUnitHour";
        case 82: return "ValueUnitDay";
        case 83: return "ValueUnitWeek";
        case 84: return "ValueUnitMonth";
        case 85: return "ValueUnitYear";
        case 86: return "ValueUnitDayMask";
        case 90: return "ValueUnitSemantic";
        case 91: return "ValueUnitLocationID";
        case 92: return "ValueUnitLocationArray";
    }
    return "Unknown (" + value + ")";
}
// DeviceTags
function deviceTagToString(value) 
{
    switch (value)
    {
        case 500: return "DeviceTagLamp";
        case 501: return "DeviceTagOutdoorLamp";
        case 502: return "DeviceTagDimmableLamp";
        case 503: return "DeviceTagRGBLamp";
        case 505: return "DeviceTagShutter";
        case 510: return "DeviceTagClimateControl";
        case 511: return "DeviceTagRoomHeater";
        case 512: return "DeviceTagVentilator";
        case 513: return "DeviceTagFloorHeating";
        case 514: return "DeviceTagBoiler";
        case 515: return "DeviceTagCentralHeater";
        case 530: return "DeviceTagWallSocket";
        case 550: return "DeviceTagSwitch";
        case 551: return "DeviceTagDimmableSwitch";
        case 552: return "DeviceTagToggleSwitch";
        case 600: return "DeviceTagSensor";
        case 601: return "DeviceTagOutdoorSensor";
        case 610: return "DeviceTagEmbeddedDevice";
        case 611: return "DeviceTagRaspberryPI";
        case 612: return "DeviceTagGadgeteer";
        case 613: return "DeviceTagArduino";
        case 1000: return "DeviceTagStove";
        case 1001: return "DeviceTagMicrowave";
        case 1002: return "DeviceTagFreezer";
        case 1003: return "DeviceTagRefrigerator";
        case 1004: return "DeviceTagToaster";
        case 1005: return "DeviceTagCoffeeMaker";
        case 1006: return "DeviceTagFryer";
        case 1007: return "DeviceTagMixer";
        case 1008: return "DeviceTagDishWasher";
        case 1100: return "DeviceTagWashingMachine";
        case 1101: return "DeviceTagDryer";
        case 1102: return "DeviceTagShaver";
        case 1200: return "DeviceTagClock";
        case 1500: return "DeviceTagTV";
        case 1501: return "DeviceTagRadio";
        case 1502: return "DeviceTagAVReceiver";
        case 1503: return "DeviceTagDVD";
        case 1504: return "DeviceTagBlueRay";
        case 1505: return "DeviceTagPictureFrame";
        case 1600: return "DeviceTagPC";
        case 1601: return "DeviceTagTablet";
        case 1602: return "DeviceTagSmartphone";
        case 1603: return "DeviceTagEReader";
        case 2000: return "DeviceTagWeather";
        case 2001: return "DeviceTagStock";
        case 2002: return "DeviceTagNews";
        case 2100: return "DeviceTagInternet";
        case 2200: return "DeviceTagPIM";
        case 2500: return "DeviceTagCar";
        case 2501: return "DeviceTagTruck";
        case 2502: return "DeviceTagRecreationalVehicle";
        case 2503: return "DeviceTagPublicTransport";
        case 2504: return "DeviceTagMotorcycle";
        case 2505: return "DeviceTagScooter";
        case 2506: return "DeviceTagBike";
        case 2507: return "DeviceTagShip";
        case 2508: return "DeviceTagTrain";
        case 2509: return "DeviceTagAirplane";
    }
    return "Unknown (" + value + ")";
}
// LocationIDs
function locationIDToString(value) 
{
    switch (value)
    {
        case 0: return "LocationIDVirtual";
        case 1: return "LocationIDNomadic";
        case 2: return "LocationIDInternet";
        case 3: return "LocationIDHomeZone";
        case 4: return "LocationIDPublicZone";
        case 5: return "LocationIDGuestZone";
        case 10: return "LocationIDLivingRoom";
        case 11: return "LocationIDDiningRoom";
        case 12: return "LocationIDBedRoom";
        case 13: return "LocationIDGuestRoom";
        case 14: return "LocationIDChildrensRoom";
        case 15: return "LocationIDKitchen";
        case 16: return "LocationIDBathRoom";
        case 17: return "LocationIDToilet";
        case 18: return "LocationIDFloor";
        case 25: return "LocationIDOffice";
        case 26: return "LocationIDConferenceRoom";
        case 27: return "LocationIDServerRoom";
        case 30: return "LocationIDBasement";
        case 31: return "LocationIDGarage";
        case 32: return "LocationIDChamber";
        case 33: return "LocationIDToolShed";
        case 34: return "LocationIDEngineeringRoom";
        case 40: return "LocationIDOutdoor";
        case 41: return "LocationIDBalcony";
        case 42: return "LocationIDTerrace";
        case 50: return "LocationIDCar";
        case 51: return "LocationIDTruck";
        case 52: return "LocationIDRecreationalVehicle";
        case 53: return "LocationIDPublicTransport";
        case 54: return "LocationIDMotorcycle";
        case 55: return "LocationIDScooter";
        case 56: return "LocationIDBike";
        case 57: return "LocationIDShip";
        case 58: return "LocationIDTrain";
        case 59: return "LocationIDAirplane";
        case 80: return "LocationIDPublicBuilding";
        case 81: return "LocationIDParking";
        case 82: return "LocationIDTransportBuilding";
        case 83: return "LocationIDRestaurant";
        case 84: return "LocationIDEntertainment";
        case 85: return "LocationIDShoppingPlace";
        case 86: return "LocationIDServicePlace";
    }
    return "Unknown (" + value + ")";
}