);
Konstanten

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


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

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

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

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

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

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

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

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

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

// ServiceTags
const ServiceTagContact                                            = 3000;
const ServiceTagDoorContact                                        = 3001;
const ServiceTagWindowContact                                      = 3002;
const ServiceTagSwitchContact                                      = 3003;
const ServiceTagWallSocketState                                    = 3004;
const ServiceTagDeviceOnOffState                                   = 3005;
const ServiceTagTrunkContact                                       = 3006;
const ServiceTagHatchContact                                       = 3007;
const ServiceTagRelativeBrightness                                 = 3100;
const ServiceTagRelativeHumidity                                   = 3101;
const ServiceTagRelativeVolume                                     = 3102;
const ServiceTagRelativeActivity                                   = 3103;
const ServiceTagRelativePotentiometer                              = 3104;
const ServiceTagRelativeBattery                                    = 3105;
const ServiceTagRelativeFreshWaterFillLevel                        = 3110;
const ServiceTagRelativeSewageWaterFillLevel                       = 3111;
const ServiceTagRelativeGasFillLevel                               = 3112;
const ServiceTagRelativeFuelFillLevel                              = 3113;
const ServiceTagSensorAmbientTemperature                           = 3600;
const ServiceTagSensorAbsoluteBrightness                           = 3601;
const ServiceTagSensorAirPressure                                  = 3602;
const ServiceTagSensorDistance                                     = 3603;
const ServiceTagSensorRotation                                     = 3604;
const ServiceTagSensorDust                                         = 3605;
const ServiceTagSensorGasConcentration                             = 3610;
const ServiceTagSensorCOConcentration                              = 3611;
const ServiceTagSensorCO2Concentration                             = 3612;
const ServiceTagSensorH2Concentration                              = 3613;
const ServiceTagSensorAlcoholConcentration                         = 3614;
const ServiceTagSensorSmokeConcentration                           = 3615;
const ServiceTagSensorLPGConcentration                             = 3616;
const ServiceTagSensorPropaneConcentration                         = 3617;
const ServiceTagSensorMethaneConcentration                         = 3618;
const ServiceTagSensorAvailableDiskSpace                           = 3630;
const ServiceTagSensorUsedDiskSpace                                = 3631;
const ServiceTagSensorAvailableDatabaseSpace                       = 3632;
const ServiceTagSensorUsedDatabaseSpace                            = 3633;
const ServiceTagSensorDeviceTemperature                            = 3700;
const ServiceTagSensorWaterTemperature                             = 3701;
const ServiceTagLight                                              = 4000;
const ServiceTagWallSocketSwitch                                   = 4004;
const ServiceTagDeviceOnOffSwitch                                  = 4005;
const ServiceTagIOCustom                                           = 4099;
const ServiceTagDimmableLight                                      = 4100;
const ServiceTagRelativeShutterClosedLevel                         = 4101;
const ServiceTagRelativeFanLevel                                   = 4102;
const ServiceTagActuatorTemperature                                = 4600;
const ServiceTagActuatorRPM                                        = 4601;
const ServiceTagConsumptionElectricity                             = 7300;
const ServiceTagConsumptionWater                                   = 7301;
const ServiceTagConsumptionOil                                     = 7302;
const ServiceTagConsumptionFuel                                    = 7303;
const ServiceTagConsumptionGas                                     = 7304;
const ServiceTagConsumptionAmount                                  = 7305;
const ServiceTagConsumptionElectricityRange                        = 7320;
const ServiceTagConsumptionFuelRange                               = 7323;
const ServiceTagConsumptionMileage                                 = 7340;
const ServiceTagConsumptionDataVolume                              = 7350;
const 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)";
}