types

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2020 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// WhoIsAll is used when scanning a range. Using this as one of the two ranges,
	// will scan all available devices
	WhoIsAll = -1
	ArrayAll = 0xFFFFFFFF
)
View Source
const (
	TimeStampTime     = 0
	TimeStampSequence = 1
	TimeStampDatetime = 2
)
View Source
const (
	AnalogInputStr       = "Analog Input"
	AnalogOutputStr      = "Analog Output"
	AnalogValueStr       = "Analog Value"
	BinaryInputStr       = "Binary Input"
	BinaryOutputStr      = "Binary Output"
	BinaryValueStr       = "Binary Value"
	DeviceTypeStr        = "Device"
	FileStr              = "File"
	NotificationClassStr = "Notification Class"
	MultiStateValueStr   = "Multi-State Value"
	MultiStateInputStr   = "Multi-State Input"
	MultiStateOutputStr  = "Multi-State Output"
	TrendLogStr          = "Trend Log"
	CharacterStringStr   = "Character String"
)
View Source
const (
	DescriptionStr = "Description"
	ObjectNameStr  = "ObjectName"
)
View Source
const BVLCTypeBacnetIP = 0x81

BVLCTypeBacnetIP is the only valid type for the BVLC layer as of 2002. Additional types may be added in the future

View Source
const DefaultHopCount uint8 = 255
View Source
const MaxAPDU = MaxAPDUOverIP
View Source
const MaxAPDUOverIP = 1476
View Source
const MaxBitStringBytes = 15
View Source
const (
	MaxInstance = 0x3FFFFF
)
View Source
const ProtocolVersion uint8 = 1
View Source
const UnspecifiedTime = 0xFF

UnspecifiedTime means that this time is triggered through out a period. An example of this is 02:FF:FF:FF will trigger all through out 2 am

Variables

This section is empty.

Functions

func IsDeviceProperty

func IsDeviceProperty(id PropertyType) bool

func Keys

func Keys() map[string]PropertyType

func PrintAllProperties

func PrintAllProperties()

PrintAllProperties prints all of the properties within this package. This is only a subset of all properties.

func String

func String(prop PropertyType) string

String returns a human readible string of the given property

Types

type APDU

type APDU struct {
	DataType                  PDUType
	SegmentedMessage          bool
	MoreFollows               bool
	SegmentedResponseAccepted bool
	MaxSegs                   uint
	MaxApdu                   uint
	InvokeId                  uint8
	Sequence                  uint8
	WindowNumber              uint8
	Service                   ServiceConfirmed
	UnconfirmedService        ServiceUnconfirmed
	Error                     struct {
		Class uint32
		Code  uint32
	}

	// This is the raw data passed based on the service
	RawData []byte
}

APDU - Application Protocol Data Unit

func (*APDU) IsConfirmedServiceRequest

func (a *APDU) IsConfirmedServiceRequest() bool

IsConfirmedServiceRequest checks to see if the APDU is in the list of known services

type Address

type Address struct {
	Net    uint16
	Len    uint8
	MacLen uint8
	Mac    []uint8
	Adr    []uint8
}

func (*Address) IsBroadcast

func (a *Address) IsBroadcast() bool

IsBroadcast returns if the address is a broadcast address

func (*Address) IsSubBroadcast

func (a *Address) IsSubBroadcast() bool

IsSubBroadcast checks to see if packet is meant to be a network specific broadcast

func (*Address) IsUnicast

func (a *Address) IsUnicast() bool

IsUnicast checks to see if packet is meant to be a unicast

func (*Address) SetBroadcast

func (a *Address) SetBroadcast(b bool)

func (*Address) UDPAddr

func (a *Address) UDPAddr() (net.UDPAddr, error)

UDPAddr parses the mac address and returns an proper net.UDPAddr

type BVLC

type BVLC struct {
	Type     byte
	Function BacFunc

	// Length includes the length of Type, Function, and Length. (4 bytes) It also
	// has the length of the data field after
	Length uint16
	Data   []byte
}

type BacFunc

type BacFunc byte

Bacnet Fuction

const (
	BacFuncResult                          BacFunc = 0
	BacFuncWriteBroadcastDistributionTable BacFunc = 1
	BacFuncBroadcastDistributionTable      BacFunc = 2
	BacFuncBroadcastDistributionTableAck   BacFunc = 3
	BacFuncForwardedNPDU                   BacFunc = 4
	BacFuncUnicast                         BacFunc = 10
	BacFuncBroadcast                       BacFunc = 11
)

List of possible BACnet functions

type BitString added in v1.0.1

type BitString struct {
	// contains filtered or unexported fields
}

func NewBitString added in v1.0.1

func NewBitString(bufferSize int) *BitString

func (*BitString) Bit added in v1.0.1

func (bs *BitString) Bit(bitNumber uint8) bool

func (*BitString) BitUsed added in v1.0.1

func (bs *BitString) BitUsed() uint8

func (*BitString) BitsCapacity added in v1.0.1

func (bs *BitString) BitsCapacity() uint8

func (*BitString) Byte added in v1.0.1

func (bs *BitString) Byte(index uint8) byte

func (*BitString) BytesUsed added in v1.0.1

func (bs *BitString) BytesUsed() uint8

func (*BitString) SetBit added in v1.0.1

func (bs *BitString) SetBit(bitNumber uint8, value bool)

func (*BitString) SetBitsUsed added in v1.0.1

func (bs *BitString) SetBitsUsed(byteUsed uint8, bitsUnused uint8) bool

func (*BitString) SetByte added in v1.0.1

func (bs *BitString) SetByte(index uint8, value byte) bool

func (*BitString) String added in v1.0.1

func (bs *BitString) String() string

func (*BitString) Value added in v1.0.1

func (bs *BitString) Value() []bool

type DataTime added in v1.0.2

type DataTime struct {
	Date
	Time
}

type Date

type Date struct {
	Year  int
	Month int
	Day   int
	// Bacnet has an option to only do operations on even or odd months
	EvenMonth      bool
	OddMonth       bool
	EvenDay        bool
	OddDay         bool
	LastDayOfMonth bool
	DayOfWeek      DayOfWeek
}

type DayOfWeek

type DayOfWeek int
const (
	None      DayOfWeek = iota
	Monday    DayOfWeek = iota
	Tuesday   DayOfWeek = iota
	Wednesday DayOfWeek = iota
	Thursday  DayOfWeek = iota
	Friday    DayOfWeek = iota
	Saturday  DayOfWeek = iota
	Sunday    DayOfWeek = iota
)

type Device

type Device struct {
	ID           ObjectID
	MaxApdu      uint32
	Segmentation Enumerated
	Vendor       uint32
	Addr         Address
	Objects      ObjectMap
}

func (*Device) ObjectSlice

func (dev *Device) ObjectSlice() []Object

ObjectSlice returns all the objects in the device as a slice (not thread-safe)

type Enumerated

type Enumerated uint32

type IAm

type IAm struct {
	ID           ObjectID
	MaxApdu      uint32
	Segmentation Enumerated
	Vendor       uint32
	Addr         Address
}

type MultiplePropertyData

type MultiplePropertyData struct {
	Objects    []Object
	ErrorClass uint8
	ErrorCode  uint8
}

func (MultiplePropertyData) String

func (rp MultiplePropertyData) String() string

String returns a pretty print of the read multiple property structure

type NPDU

type NPDU struct {
	Version uint8

	// Destination (optional)
	Destination *Address

	// Source (optional)
	Source *Address

	VendorId uint16

	IsNetworkLayerMessage   bool
	NetworkLayerMessageType uint8
	ExpectingReply          bool
	Priority                NPDUPriority
	HopCount                uint8
}

type NPDUPriority

type NPDUPriority byte
const (
	LifeSafety        NPDUPriority = 3
	CriticalEquipment NPDUPriority = 2
	Urgent            NPDUPriority = 1
	Normal            NPDUPriority = 0
)

type Null

type Null struct{}

Null is used when a value is empty.

func (Null) String

func (n Null) String() string

type Object

type Object struct {
	Name        string
	Description string
	ID          ObjectID
	Properties  []Property `json:",omitempty"`
}

type ObjectID

type ObjectID struct {
	Type     ObjectType
	Instance ObjectInstance
}

func (ObjectID) String

func (id ObjectID) String() string

String returns a pretty print of the ObjectID structure

type ObjectInstance

type ObjectInstance uint32

type ObjectMap

type ObjectMap map[ObjectType]map[ObjectInstance]Object

func (ObjectMap) Len

func (o ObjectMap) Len() int

Len returns the total number of entries within the object map.

func (ObjectMap) MarshalJSON

func (om ObjectMap) MarshalJSON() ([]byte, error)

func (ObjectMap) UnmarshalJSON

func (om ObjectMap) UnmarshalJSON(data []byte) error

type ObjectType

type ObjectType uint16
const (
	AnalogInput       ObjectType = 0
	AnalogOutput      ObjectType = 1
	AnalogValue       ObjectType = 2
	BinaryInput       ObjectType = 3
	BinaryOutput      ObjectType = 4
	BinaryValue       ObjectType = 5
	DeviceType        ObjectType = 8
	File              ObjectType = 10
	MultiStateInput   ObjectType = 13
	MultiStateOutput  ObjectType = 14
	NotificationClass ObjectType = 15
	MultiStateValue   ObjectType = 19
	TrendLog          ObjectType = 20
	CharacterString   ObjectType = 40
)

func GetType

func GetType(s string) ObjectType

func (ObjectType) String

func (t ObjectType) String() string

type PDUType

type PDUType uint8

pduType encomposes all valid pdus.

const (
	ConfirmedServiceRequest   PDUType = 0
	UnconfirmedServiceRequest PDUType = 0x10
	SimpleAck                 PDUType = 0x20
	ComplexAck                PDUType = 0x30
	SegmentAck                PDUType = 0x40
	Error                     PDUType = 0x50
	Reject                    PDUType = 0x60
	Abort                     PDUType = 0x70
)

pdu requests

type Property

type Property struct {
	Type       PropertyType
	ArrayIndex uint32
	Data       interface{}
	Priority   NPDUPriority
}

type PropertyData

type PropertyData struct {
	InvokeID   uint16
	Object     Object
	ErrorClass uint8
	ErrorCode  uint8
}

type PropertyType

type PropertyType uint32
const (
	PropAllProperties    PropertyType = 8
	PropDescription      PropertyType = 28
	PropFileSize         PropertyType = 42
	PropFileType         PropertyType = 43
	PropModelName        PropertyType = 70
	PropObjectIdentifier PropertyType = 75
	PropObjectList       PropertyType = 76
	PropObjectName       PropertyType = 77
	PropObjectReference  PropertyType = 78
	PropObjectType       PropertyType = 79
	PropPresentValue     PropertyType = 85
	PropUnits            PropertyType = 117
	PropPriorityArray    PropertyType = 87

	//from github.com/bacnet-stack/bacnet-stack
	PROP_ACKED_TRANSITIONS                   PropertyType = 0
	PROP_ACK_REQUIRED                        PropertyType = 1
	PROP_ACTION                              PropertyType = 2
	PROP_ACTION_TEXT                         PropertyType = 3
	PROP_ACTIVE_TEXT                         PropertyType = 4
	PROP_ACTIVE_VT_SESSIONS                  PropertyType = 5
	PROP_ALARM_VALUE                         PropertyType = 6
	PROP_ALARM_VALUES                        PropertyType = 7
	PROP_ALL                                 PropertyType = 8
	PROP_ALL_WRITES_SUCCESSFUL               PropertyType = 9
	PROP_APDU_SEGMENT_TIMEOUT                PropertyType = 10
	PROP_APDU_TIMEOUT                        PropertyType = 11
	PROP_APPLICATION_SOFTWARE_VERSION        PropertyType = 12
	PROP_ARCHIVE                             PropertyType = 13
	PROP_BIAS                                PropertyType = 14
	PROP_CHANGE_OF_STATE_COUNT               PropertyType = 15
	PROP_CHANGE_OF_STATE_TIME                PropertyType = 16
	PROP_NOTIFICATION_CLASS                  PropertyType = 17
	PROP_BLANK_1                             PropertyType = 18
	PROP_CONTROLLED_VARIABLE_REFERENCE       PropertyType = 19
	PROP_CONTROLLED_VARIABLE_PropertyTypeS   PropertyType = 20
	PROP_CONTROLLED_VARIABLE_VALUE           PropertyType = 21
	PROP_COV_INCREMENT                       PropertyType = 22
	PROP_DATE_LIST                           PropertyType = 23
	PROP_DAYLIGHT_SAVINGS_STATUS             PropertyType = 24
	PROP_DEADBAND                            PropertyType = 25
	PROP_DERIVATIVE_CONSTANT                 PropertyType = 26
	PROP_DERIVATIVE_CONSTANT_PropertyTypeS   PropertyType = 27
	PROP_DESCRIPTION                         PropertyType = 28
	PROP_DESCRIPTION_OF_HALT                 PropertyType = 29
	PROP_DEVICE_ADDRESS_BINDING              PropertyType = 30
	PROP_DEVICE_TYPE                         PropertyType = 31
	PROP_EFFECTIVE_PERIOD                    PropertyType = 32
	PROP_ELAPSED_ACTIVE_TIME                 PropertyType = 33
	PROP_ERROR_LIMIT                         PropertyType = 34
	PROP_EVENT_ENABLE                        PropertyType = 35
	PROP_EVENT_STATE                         PropertyType = 36
	PROP_EVENT_TYPE                          PropertyType = 37
	PROP_EXCEPTION_SCHEDULE                  PropertyType = 38
	PROP_FAULT_VALUES                        PropertyType = 39
	PROP_FEEDBACK_VALUE                      PropertyType = 40
	PROP_FILE_ACCESS_METHOD                  PropertyType = 41
	PROP_FILE_SIZE                           PropertyType = 42
	PROP_FILE_TYPE                           PropertyType = 43
	PROP_FIRMWARE_REVISION                   PropertyType = 44
	PROP_HIGH_LIMIT                          PropertyType = 45
	PROP_INACTIVE_TEXT                       PropertyType = 46
	PROP_IN_PROCESS                          PropertyType = 47
	PROP_INSTANCE_OF                         PropertyType = 48
	PROP_INTEGRAL_CONSTANT                   PropertyType = 49
	PROP_INTEGRAL_CONSTANT_PropertyTypeS     PropertyType = 50
	PROP_ISSUE_CONFIRMED_NOTIFICATIONS       PropertyType = 51
	PROP_LIMIT_ENABLE                        PropertyType = 52
	PROP_LIST_OF_GROUP_MEMBERS               PropertyType = 53
	PROP_LIST_OF_OBJECT_PROPERTY_REFERENCES  PropertyType = 54
	PROP_LIST_OF_SESSION_KEYS                PropertyType = 55
	PROP_LOCAL_DATE                          PropertyType = 56
	PROP_LOCAL_TIME                          PropertyType = 57
	PROP_LOCATION                            PropertyType = 58
	PROP_LOW_LIMIT                           PropertyType = 59
	PROP_MANIPULATED_VARIABLE_REFERENCE      PropertyType = 60
	PROP_MAXIMUM_OUTPUT                      PropertyType = 61
	PROP_MAX_APDU_LENGTH_ACCEPTED            PropertyType = 62
	PROP_MAX_INFO_FRAMES                     PropertyType = 63
	PROP_MAX_MASTER                          PropertyType = 64
	PROP_MAX_PRES_VALUE                      PropertyType = 65
	PROP_MINIMUM_OFF_TIME                    PropertyType = 66
	PROP_MINIMUM_ON_TIME                     PropertyType = 67
	PROP_MINIMUM_OUTPUT                      PropertyType = 68
	PROP_MIN_PRES_VALUE                      PropertyType = 69
	PROP_MODEL_NAME                          PropertyType = 70
	PROP_MODIFICATION_DATE                   PropertyType = 71
	PROP_NOTIFY_TYPE                         PropertyType = 72
	PROP_NUMBER_OF_APDU_RETRIES              PropertyType = 73
	PROP_NUMBER_OF_STATES                    PropertyType = 74
	PROP_OBJECT_IDENTIFIER                   PropertyType = 75
	PROP_OBJECT_LIST                         PropertyType = 76
	PROP_OBJECT_NAME                         PropertyType = 77
	PROP_OBJECT_PROPERTY_REFERENCE           PropertyType = 78
	PROP_OBJECT_TYPE                         PropertyType = 79
	PROP_OPTIONAL                            PropertyType = 80
	PROP_OUT_OF_SERVICE                      PropertyType = 81
	PROP_OUTPUT_PropertyTypeS                PropertyType = 82
	PROP_EVENT_PARAMETERS                    PropertyType = 83
	PROP_POLARITY                            PropertyType = 84
	PROP_PRESENT_VALUE                       PropertyType = 85
	PROP_PRIORITY                            PropertyType = 86
	PROP_PRIORITY_ARRAY                      PropertyType = 87
	PROP_PRIORITY_FOR_WRITING                PropertyType = 88
	PROP_PROCESS_IDENTIFIER                  PropertyType = 89
	PROP_PROGRAM_CHANGE                      PropertyType = 90
	PROP_PROGRAM_LOCATION                    PropertyType = 91
	PROP_PROGRAM_STATE                       PropertyType = 92
	PROP_PROPORTIONAL_CONSTANT               PropertyType = 93
	PROP_PROPORTIONAL_CONSTANT_PropertyTypeS PropertyType = 94
	PROP_PROTOCOL_CONFORMANCE_CLASS          PropertyType = 95 /* deleted in version 1 revision 2 */
	PROP_PROTOCOL_OBJECT_TYPES_SUPPORTED     PropertyType = 96
	PROP_PROTOCOL_SERVICES_SUPPORTED         PropertyType = 97
	PROP_PROTOCOL_VERSION                    PropertyType = 98
	PROP_READ_ONLY                           PropertyType = 99
	PROP_REASON_FOR_HALT                     PropertyType = 100
	PROP_RECIPIENT                           PropertyType = 101
	PROP_RECIPIENT_LIST                      PropertyType = 102
	PROP_RELIABILITY                         PropertyType = 103
	PROP_RELINQUISH_DEFAULT                  PropertyType = 104
	PROP_REQUIRED                            PropertyType = 105
	PROP_RESOLUTION                          PropertyType = 106
	PROP_SEGMENTATION_SUPPORTED              PropertyType = 107
	PROP_SETPOINT                            PropertyType = 108
	PROP_SETPOINT_REFERENCE                  PropertyType = 109
	PROP_STATE_TEXT                          PropertyType = 110
	PROP_STATUS_FLAGS                        PropertyType = 111
	PROP_SYSTEM_STATUS                       PropertyType = 112
	PROP_TIME_DELAY                          PropertyType = 113
	PROP_TIME_OF_ACTIVE_TIME_RESET           PropertyType = 114
	PROP_TIME_OF_STATE_COUNT_RESET           PropertyType = 115
	PROP_TIME_SYNCHRONIZATION_RECIPIENTS     PropertyType = 116
	PROP_PropertyTypeS                       PropertyType = 117
	PROP_UPDATE_INTERVAL                     PropertyType = 118
	PROP_UTC_OFFSET                          PropertyType = 119
	PROP_VENDOR_IDENTIFIER                   PropertyType = 120
	PROP_VENDOR_NAME                         PropertyType = 121
	PROP_VT_CLASSES_SUPPORTED                PropertyType = 122
	PROP_WEEKLY_SCHEDULE                     PropertyType = 123
	PROP_ATTEMPTED_SAMPLES                   PropertyType = 124
	PROP_AVERAGE_VALUE                       PropertyType = 125
	PROP_BUFFER_SIZE                         PropertyType = 126
	PROP_CLIENT_COV_INCREMENT                PropertyType = 127
	PROP_COV_RESUBSCRIPTION_INTERVAL         PropertyType = 128
	PROP_CURRENT_NOTIFY_TIME                 PropertyType = 129
	PROP_EVENT_TIME_STAMPS                   PropertyType = 130
	PROP_LOG_BUFFER                          PropertyType = 131
	PROP_LOG_DEVICE_OBJECT_PROPERTY          PropertyType = 132
	/* The enable property is renamed from log-enable in
	   Addendum b to ANSI/ASHRAE 135-2004(135b-2) */
	PROP_ENABLE                       PropertyType = 133
	PROP_LOG_INTERVAL                 PropertyType = 134
	PROP_MAXIMUM_VALUE                PropertyType = 135
	PROP_MINIMUM_VALUE                PropertyType = 136
	PROP_NOTIFICATION_THRESHOLD       PropertyType = 137
	PROP_PREVIOUS_NOTIFY_TIME         PropertyType = 138
	PROP_PROTOCOL_REVISION            PropertyType = 139
	PROP_RECORDS_SINCE_NOTIFICATION   PropertyType = 140
	PROP_RECORD_COUNT                 PropertyType = 141
	PROP_START_TIME                   PropertyType = 142
	PROP_STOP_TIME                    PropertyType = 143
	PROP_STOP_WHEN_FULL               PropertyType = 144
	PROP_TOTAL_RECORD_COUNT           PropertyType = 145
	PROP_VALID_SAMPLES                PropertyType = 146
	PROP_WINDOW_INTERVAL              PropertyType = 147
	PROP_WINDOW_SAMPLES               PropertyType = 148
	PROP_MAXIMUM_VALUE_TIMESTAMP      PropertyType = 149
	PROP_MINIMUM_VALUE_TIMESTAMP      PropertyType = 150
	PROP_VARIANCE_VALUE               PropertyType = 151
	PROP_ACTIVE_COV_SUBSCRIPTIONS     PropertyType = 152
	PROP_BACKUP_FAILURE_TIMEOUT       PropertyType = 153
	PROP_CONFIGURATION_FILES          PropertyType = 154
	PROP_DATABASE_REVISION            PropertyType = 155
	PROP_DIRECT_READING               PropertyType = 156
	PROP_LAST_RESTORE_TIME            PropertyType = 157
	PROP_MAINTENANCE_REQUIRED         PropertyType = 158
	PROP_MEMBER_OF                    PropertyType = 159
	PROP_MODE                         PropertyType = 160
	PROP_OPERATION_EXPECTED           PropertyType = 161
	PROP_SETTING                      PropertyType = 162
	PROP_SILENCED                     PropertyType = 163
	PROP_TRACKING_VALUE               PropertyType = 164
	PROP_ZONE_MEMBERS                 PropertyType = 165
	PROP_LIFE_SAFETY_ALARM_VALUES     PropertyType = 166
	PROP_MAX_SEGMENTS_ACCEPTED        PropertyType = 167
	PROP_PROFILE_NAME                 PropertyType = 168
	PROP_AUTO_SLAVE_DISCOVERY         PropertyType = 169
	PROP_MANUAL_SLAVE_ADDRESS_BINDING PropertyType = 170
	PROP_SLAVE_ADDRESS_BINDING        PropertyType = 171
	PROP_SLAVE_PROXY_ENABLE           PropertyType = 172
	PROP_LAST_NOTIFY_RECORD           PropertyType = 173
	PROP_SCHEDULE_DEFAULT             PropertyType = 174
	PROP_ACCEPTED_MODES               PropertyType = 175
	PROP_ADJUST_VALUE                 PropertyType = 176
	PROP_COUNT                        PropertyType = 177
	PROP_COUNT_BEFORE_CHANGE          PropertyType = 178
	PROP_COUNT_CHANGE_TIME            PropertyType = 179
	PROP_COV_PERIOD                   PropertyType = 180
	PROP_INPUT_REFERENCE              PropertyType = 181
	PROP_LIMIT_MONITORING_INTERVAL    PropertyType = 182
	PROP_LOGGING_OBJECT               PropertyType = 183
	PROP_LOGGING_RECORD               PropertyType = 184
	PROP_PRESCALE                     PropertyType = 185
	PROP_PULSE_RATE                   PropertyType = 186
	PROP_SCALE                        PropertyType = 187
	PROP_SCALE_FACTOR                 PropertyType = 188
	PROP_UPDATE_TIME                  PropertyType = 189
	PROP_VALUE_BEFORE_CHANGE          PropertyType = 190
	PROP_VALUE_SET                    PropertyType = 191
	PROP_VALUE_CHANGE_TIME            PropertyType = 192
	/* enumerations 193-206 are new */
	PROP_ALIGN_INTERVALS PropertyType = 193
	/* enumeration 194 is unassigned */
	PROP_INTERVAL_OFFSET     PropertyType = 195
	PROP_LAST_RESTART_REASON PropertyType = 196
	PROP_LOGGING_TYPE        PropertyType = 197
	/* enumeration 198-201 is unassigned */
	PROP_RESTART_NOTIFICATION_RECIPIENTS     PropertyType = 202
	PROP_TIME_OF_DEVICE_RESTART              PropertyType = 203
	PROP_TIME_SYNCHRONIZATION_INTERVAL       PropertyType = 204
	PROP_TRIGGER                             PropertyType = 205
	PROP_UTC_TIME_SYNCHRONIZATION_RECIPIENTS PropertyType = 206
	/* enumerations 207-211 are used in Addendum d to ANSI/ASHRAE 135-2004 */
	PROP_NODE_SUBTYPE            PropertyType = 207
	PROP_NODE_TYPE               PropertyType = 208
	PROP_STRUCTURED_OBJECT_LIST  PropertyType = 209
	PROP_SUBORDINATE_ANNOTATIONS PropertyType = 210
	PROP_SUBORDINATE_LIST        PropertyType = 211
	/* enumerations 212-225 are used in Addendum e to ANSI/ASHRAE 135-2004 */
	PROP_ACTUAL_SHED_LEVEL   PropertyType = 212
	PROP_DUTY_WINDOW         PropertyType = 213
	PROP_EXPECTED_SHED_LEVEL PropertyType = 214
	PROP_FULL_DUTY_BASELINE  PropertyType = 215
	/* enumerations 216-217 are unassigned */
	/* enumerations 212-225 are used in Addendum e to ANSI/ASHRAE 135-2004 */
	PROP_REQUESTED_SHED_LEVEL    PropertyType = 218
	PROP_SHED_DURATION           PropertyType = 219
	PROP_SHED_LEVEL_DESCRIPTIONS PropertyType = 220
	PROP_SHED_LEVELS             PropertyType = 221
	PROP_STATE_DESCRIPTION       PropertyType = 222
	/* enumerations 223-225 are unassigned  */
	/* enumerations 226-235 are used in Addendum f to ANSI/ASHRAE 135-2004 */
	PROP_DOOR_ALARM_STATE         PropertyType = 226
	PROP_DOOR_EXTENDED_PULSE_TIME PropertyType = 227
	PROP_DOOR_MEMBERS             PropertyType = 228
	PROP_DOOR_OPEN_TOO_LONG_TIME  PropertyType = 229
	PROP_DOOR_PULSE_TIME          PropertyType = 230
	PROP_DOOR_STATUS              PropertyType = 231
	PROP_DOOR_UNLOCK_DELAY_TIME   PropertyType = 232
	PROP_LOCK_STATUS              PropertyType = 233
	PROP_MASKED_ALARM_VALUES      PropertyType = 234
	PROP_SECURED_STATUS           PropertyType = 235
	/* enumerations 236-243 are unassigned  */
	/* enumerations 244-311 are used in Addendum j to ANSI/ASHRAE 135-2004 */
	PROP_ABSENTEE_LIMIT                     PropertyType = 244
	PROP_ACCESS_ALARM_EVENTS                PropertyType = 245
	PROP_ACCESS_DOORS                       PropertyType = 246
	PROP_ACCESS_EVENT                       PropertyType = 247
	PROP_ACCESS_EVENT_AUTHENTICATION_FACTOR PropertyType = 248
	PROP_ACCESS_EVENT_CREDENTIAL            PropertyType = 249
	PROP_ACCESS_EVENT_TIME                  PropertyType = 250
	PROP_ACCESS_TRANSACTION_EVENTS          PropertyType = 251
	PROP_ACCOMPANIMENT                      PropertyType = 252
	PROP_ACCOMPANIMENT_TIME                 PropertyType = 253
	PROP_ACTIVATION_TIME                    PropertyType = 254
	PROP_ACTIVE_AUTHENTICATION_POLICY       PropertyType = 255
	PROP_ASSIGNED_ACCESS_RIGHTS             PropertyType = 256
	PROP_AUTHENTICATION_FACTORS             PropertyType = 257
	PROP_AUTHENTICATION_POLICY_LIST         PropertyType = 258
	PROP_AUTHENTICATION_POLICY_NAMES        PropertyType = 259
	PROP_AUTHENTICATION_STATUS              PropertyType = 260
	PROP_AUTHORIZATION_MODE                 PropertyType = 261
	PROP_BELONGS_TO                         PropertyType = 262
	PROP_CREDENTIAL_DISABLE                 PropertyType = 263
	PROP_CREDENTIAL_STATUS                  PropertyType = 264
	PROP_CREDENTIALS                        PropertyType = 265
	PROP_CREDENTIALS_IN_ZONE                PropertyType = 266
	PROP_DAYS_REMAINING                     PropertyType = 267
	PROP_ENTRY_POINTS                       PropertyType = 268
	PROP_EXIT_POINTS                        PropertyType = 269
	PROP_EXPIRATION_TIME                    PropertyType = 270
	PROP_EXTENDED_TIME_ENABLE               PropertyType = 271
	PROP_FAILED_ATTEMPT_EVENTS              PropertyType = 272
	PROP_FAILED_ATTEMPTS                    PropertyType = 273
	PROP_FAILED_ATTEMPTS_TIME               PropertyType = 274
	PROP_LAST_ACCESS_EVENT                  PropertyType = 275
	PROP_LAST_ACCESS_POINT                  PropertyType = 276
	PROP_LAST_CREDENTIAL_ADDED              PropertyType = 277
	PROP_LAST_CREDENTIAL_ADDED_TIME         PropertyType = 278
	PROP_LAST_CREDENTIAL_REMOVED            PropertyType = 279
	PROP_LAST_CREDENTIAL_REMOVED_TIME       PropertyType = 280
	PROP_LAST_USE_TIME                      PropertyType = 281
	PROP_LOCKOUT                            PropertyType = 282
	PROP_LOCKOUT_RELINQUISH_TIME            PropertyType = 283
	PROP_MASTER_EXEMPTION                   PropertyType = 284
	PROP_MAX_FAILED_ATTEMPTS                PropertyType = 285
	PROP_MEMBERS                            PropertyType = 286
	PROP_MUSTER_POINT                       PropertyType = 287
	PROP_NEGATIVE_ACCESS_RULES              PropertyType = 288
	PROP_NUMBER_OF_AUTHENTICATION_POLICIES  PropertyType = 289
	PROP_OCCUPANCY_COUNT                    PropertyType = 290
	PROP_OCCUPANCY_COUNT_ADJUST             PropertyType = 291
	PROP_OCCUPANCY_COUNT_ENABLE             PropertyType = 292
	PROP_OCCUPANCY_EXEMPTION                PropertyType = 293
	PROP_OCCUPANCY_LOWER_LIMIT              PropertyType = 294
	PROP_OCCUPANCY_LOWER_LIMIT_ENFORCED     PropertyType = 295
	PROP_OCCUPANCY_STATE                    PropertyType = 296
	PROP_OCCUPANCY_UPPER_LIMIT              PropertyType = 297
	PROP_OCCUPANCY_UPPER_LIMIT_ENFORCED     PropertyType = 298
	PROP_PASSBACK_EXEMPTION                 PropertyType = 299
	PROP_PASSBACK_MODE                      PropertyType = 300
	PROP_PASSBACK_TIMEOUT                   PropertyType = 301
	PROP_POSITIVE_ACCESS_RULES              PropertyType = 302
	PROP_REASON_FOR_DISABLE                 PropertyType = 303
	PROP_SUPPORTED_FORMATS                  PropertyType = 304
	PROP_SUPPORTED_FORMAT_CLASSES           PropertyType = 305
	PROP_THREAT_AUTHORITY                   PropertyType = 306
	PROP_THREAT_LEVEL                       PropertyType = 307
	PROP_TRACE_FLAG                         PropertyType = 308
	PROP_TRANSACTION_NOTIFICATION_CLASS     PropertyType = 309
	PROP_USER_EXTERNAL_IDENTIFIER           PropertyType = 310
	PROP_USER_INFORMATION_REFERENCE         PropertyType = 311
	/* enumerations 312-316 are unassigned */
	PROP_USER_NAME         PropertyType = 317
	PROP_USER_TYPE         PropertyType = 318
	PROP_USES_REMAINING    PropertyType = 319
	PROP_ZONE_FROM         PropertyType = 320
	PROP_ZONE_TO           PropertyType = 321
	PROP_ACCESS_EVENT_TAG  PropertyType = 322
	PROP_GLOBAL_IDENTIFIER PropertyType = 323
	/* enumerations 324-325 are unassigned */
	PROP_VERIFICATION_TIME                PropertyType = 326
	PROP_BASE_DEVICE_SECURITY_POLICY      PropertyType = 327
	PROP_DISTRIBUTION_KEY_REVISION        PropertyType = 328
	PROP_DO_NOT_HIDE                      PropertyType = 329
	PROP_KEY_SETS                         PropertyType = 330
	PROP_LAST_KEY_SERVER                  PropertyType = 331
	PROP_NETWORK_ACCESS_SECURITY_POLICIES PropertyType = 332
	PROP_PACKET_REORDER_TIME              PropertyType = 333
	PROP_SECURITY_PDU_TIMEOUT             PropertyType = 334
	PROP_SECURITY_TIME_WINDOW             PropertyType = 335
	PROP_SUPPORTED_SECURITY_ALGORITHM     PropertyType = 336
	PROP_UPDATE_KEY_SET_TIMEOUT           PropertyType = 337
	PROP_BACKUP_AND_RESTORE_STATE         PropertyType = 338
	PROP_BACKUP_PREPARATION_TIME          PropertyType = 339
	PROP_RESTORE_COMPLETION_TIME          PropertyType = 340
	PROP_RESTORE_PREPARATION_TIME         PropertyType = 341
	/* enumerations 342-344 are defined in Addendum 2008-w */
	PROP_BIT_MASK                  PropertyType = 342
	PROP_BIT_TEXT                  PropertyType = 343
	PROP_IS_UTC                    PropertyType = 344
	PROP_GROUP_MEMBERS             PropertyType = 345
	PROP_GROUP_MEMBER_NAMES        PropertyType = 346
	PROP_MEMBER_STATUS_FLAGS       PropertyType = 347
	PROP_REQUESTED_UPDATE_INTERVAL PropertyType = 348
	PROP_COVU_PERIOD               PropertyType = 349
	PROP_COVU_RECIPIENTS           PropertyType = 350
	PROP_EVENT_MESSAGE_TEXTS       PropertyType = 351
	/* enumerations 352-363 are defined in Addendum 2010-af */
	PROP_EVENT_MESSAGE_TEXTS_CONFIG     PropertyType = 352
	PROP_EVENT_DETECTION_ENABLE         PropertyType = 353
	PROP_EVENT_ALGORITHM_INHIBIT        PropertyType = 354
	PROP_EVENT_ALGORITHM_INHIBIT_REF    PropertyType = 355
	PROP_TIME_DELAY_NORMAL              PropertyType = 356
	PROP_RELIABILITY_EVALUATION_INHIBIT PropertyType = 357
	PROP_FAULT_PARAMETERS               PropertyType = 358
	PROP_FAULT_TYPE                     PropertyType = 359
	PROP_LOCAL_FORWARDING_ONLY          PropertyType = 360
	PROP_PROCESS_IDENTIFIER_FILTER      PropertyType = 361
	PROP_SUBSCRIBED_RECIPIENTS          PropertyType = 362
	PROP_PORT_FILTER                    PropertyType = 363
	/* enumeration 364 is defined in Addendum 2010-ae */
	PROP_AUTHORIZATION_EXEMPTIONS PropertyType = 364
	/* enumerations 365-370 are defined in Addendum 2010-aa */
	PROP_ALLOW_GROUP_DELAY_INHIBIT PropertyType = 365
	PROP_CHANNEL_NUMBER            PropertyType = 366
	PROP_CONTROL_GROUPS            PropertyType = 367
	PROP_EXECUTION_DELAY           PropertyType = 368
	PROP_LAST_PRIORITY             PropertyType = 369
	PROP_WRITE_STATUS              PropertyType = 370
	/* enumeration 371 is defined in Addendum 2010-ao */
	PROP_PROPERTY_LIST PropertyType = 371
	/* enumeration 372 is defined in Addendum 2010-ak */
	PROP_SERIAL_NUMBER PropertyType = 372
	/* enumerations 373-386 are defined in Addendum 2010-i */
	PROP_BLINK_WARN_ENABLE                 PropertyType = 373
	PROP_DEFAULT_FADE_TIME                 PropertyType = 374
	PROP_DEFAULT_RAMP_RATE                 PropertyType = 375
	PROP_DEFAULT_STEP_INCREMENT            PropertyType = 376
	PROP_EGRESS_TIME                       PropertyType = 377
	PROP_IN_PROGRESS                       PropertyType = 378
	PROP_INSTANTANEOUS_POWER               PropertyType = 379
	PROP_LIGHTING_COMMAND                  PropertyType = 380
	PROP_LIGHTING_COMMAND_DEFAULT_PRIORITY PropertyType = 381
	PROP_MAX_ACTUAL_VALUE                  PropertyType = 382
	PROP_MIN_ACTUAL_VALUE                  PropertyType = 383
	PROP_POWER                             PropertyType = 384
	PROP_TRANSITION                        PropertyType = 385
	PROP_EGRESS_ACTIVE                     PropertyType = 386
	/* enumerations 387-398 */
	PROP_INTERFACE_VALUE            PropertyType = 387
	PROP_FAULT_HIGH_LIMIT           PropertyType = 388
	PROP_FAULT_LOW_LIMIT            PropertyType = 389
	PROP_LOW_DIFF_LIMIT             PropertyType = 390
	PROP_STRIKE_COUNT               PropertyType = 391
	PROP_TIME_OF_STRIKE_COUNT_RESET PropertyType = 392
	PROP_DEFAULT_TIMEOUT            PropertyType = 393
	PROP_INITIAL_TIMEOUT            PropertyType = 394
	PROP_LAST_STATE_CHANGE          PropertyType = 395
	PROP_STATE_CHANGE_VALUES        PropertyType = 396
	PROP_TIMER_RUNNING              PropertyType = 397
	PROP_TIMER_STATE                PropertyType = 398
	/* enumerations 399-427 are defined in Addendum 2012-ai */
	PROP_APDU_LENGTH                       PropertyType = 399
	PROP_IP_ADDRESS                        PropertyType = 400
	PROP_IP_DEFAULT_GATEWAY                PropertyType = 401
	PROP_IP_DHCP_ENABLE                    PropertyType = 402
	PROP_IP_DHCP_LEASE_TIME                PropertyType = 403
	PROP_IP_DHCP_LEASE_TIME_REMAINING      PropertyType = 404
	PROP_IP_DHCP_SERVER                    PropertyType = 405
	PROP_IP_DNS_SERVER                     PropertyType = 406
	PROP_BACNET_IP_GLOBAL_ADDRESS          PropertyType = 407
	PROP_BACNET_IP_MODE                    PropertyType = 408
	PROP_BACNET_IP_MULTICAST_ADDRESS       PropertyType = 409
	PROP_BACNET_IP_NAT_TRAVERSAL           PropertyType = 410
	PROP_IP_SUBNET_MASK                    PropertyType = 411
	PROP_BACNET_IP_UDP_PORT                PropertyType = 412
	PROP_BBMD_ACCEPT_FD_REGISTRATIONS      PropertyType = 413
	PROP_BBMD_BROADCAST_DISTRIBUTION_TABLE PropertyType = 414
	PROP_BBMD_FOREIGN_DEVICE_TABLE         PropertyType = 415
	PROP_CHANGES_PENDING                   PropertyType = 416
	PROP_COMMAND                           PropertyType = 417
	PROP_FD_BBMD_ADDRESS                   PropertyType = 418
	PROP_FD_SUBSCRIPTION_LIFETIME          PropertyType = 419
	PROP_LINK_SPEED                        PropertyType = 420
	PROP_LINK_SPEEDS                       PropertyType = 421
	PROP_LINK_SPEED_AUTONEGOTIATE          PropertyType = 422
	PROP_MAC_ADDRESS                       PropertyType = 423
	PROP_NETWORK_INTERFACE_NAME            PropertyType = 424
	PROP_NETWORK_NUMBER                    PropertyType = 425
	PROP_NETWORK_NUMBER_QUALITY            PropertyType = 426
	PROP_NETWORK_TYPE                      PropertyType = 427
	PROP_ROUTING_TABLE                     PropertyType = 428
	PROP_VIRTUAL_MAC_ADDRESS_TABLE         PropertyType = 429
	/* enumerations 430-491 */
	PROP_COMMAND_TIME_ARRAY             PropertyType = 430
	PROP_CURRENT_COMMAND_PRIORITY       PropertyType = 431
	PROP_LAST_COMMAND_TIME              PropertyType = 432
	PROP_VALUE_SOURCE                   PropertyType = 433
	PROP_VALUE_SOURCE_ARRAY             PropertyType = 434
	PROP_BACNET_IPV6_MODE               PropertyType = 435
	PROP_IPV6_ADDRESS                   PropertyType = 436
	PROP_IPV6_PREFIX_LENGTH             PropertyType = 437
	PROP_BACNET_IPV6_UDP_PORT           PropertyType = 438
	PROP_IPV6_DEFAULT_GATEWAY           PropertyType = 439
	PROP_BACNET_IPV6_MULTICAST_ADDRESS  PropertyType = 440
	PROP_IPV6_DNS_SERVER                PropertyType = 441
	PROP_IPV6_AUTO_ADDRESSING_ENABLE    PropertyType = 442
	PROP_IPV6_DHCP_LEASE_TIME           PropertyType = 443
	PROP_IPV6_DHCP_LEASE_TIME_REMAINING PropertyType = 444
	PROP_IPV6_DHCP_SERVER               PropertyType = 445
	PROP_IPV6_ZONE_INDEX                PropertyType = 446
	PROP_ASSIGNED_LANDING_CALLS         PropertyType = 447
	PROP_CAR_ASSIGNED_DIRECTION         PropertyType = 448
	PROP_CAR_DOOR_COMMAND               PropertyType = 449
	PROP_CAR_DOOR_STATUS                PropertyType = 450
	PROP_CAR_DOOR_TEXT                  PropertyType = 451
	PROP_CAR_DOOR_ZONE                  PropertyType = 452
	PROP_CAR_DRIVE_STATUS               PropertyType = 453
	PROP_CAR_LOAD                       PropertyType = 454
	PROP_CAR_LOAD_PropertyTypeS         PropertyType = 455
	PROP_CAR_MODE                       PropertyType = 456
	PROP_CAR_MOVING_DIRECTION           PropertyType = 457
	PROP_CAR_POSITION                   PropertyType = 458
	PROP_ELEVATOR_GROUP                 PropertyType = 459
	PROP_ENERGY_METER                   PropertyType = 460
	PROP_ENERGY_METER_REF               PropertyType = 461
	PROP_ESCALATOR_MODE                 PropertyType = 462
	PROP_FAULT_SIGNALS                  PropertyType = 463
	PROP_FLOOR_TEXT                     PropertyType = 464
	PROP_GROUP_ID                       PropertyType = 465
	/* value 466 is unassigned */
	PROP_GROUP_MODE                        PropertyType = 467
	PROP_HIGHER_DECK                       PropertyType = 468
	PROP_INSTALLATION_ID                   PropertyType = 469
	PROP_LANDING_CALLS                     PropertyType = 470
	PROP_LANDING_CALL_CONTROL              PropertyType = 471
	PROP_LANDING_DOOR_STATUS               PropertyType = 472
	PROP_LOWER_DECK                        PropertyType = 473
	PROP_MACHINE_ROOM_ID                   PropertyType = 474
	PROP_MAKING_CAR_CALL                   PropertyType = 475
	PROP_NEXT_STOPPING_FLOOR               PropertyType = 476
	PROP_OPERATION_DIRECTION               PropertyType = 477
	PROP_PASSENGER_ALARM                   PropertyType = 478
	PROP_POWER_MODE                        PropertyType = 479
	PROP_REGISTERED_CAR_CALL               PropertyType = 480
	PROP_ACTIVE_COV_MULTIPLE_SUBSCRIPTIONS PropertyType = 481
	PROP_PROTOCOL_LEVEL                    PropertyType = 482
	PROP_REFERENCE_PORT                    PropertyType = 483
	PROP_DEPLOYED_PROFILE_LOCATION         PropertyType = 484
	PROP_PROFILE_LOCATION                  PropertyType = 485
	PROP_TAGS                              PropertyType = 486
	PROP_SUBORDINATE_NODE_TYPES            PropertyType = 487
	PROP_SUBORDINATE_TAGS                  PropertyType = 488
	PROP_SUBORDINATE_RELATIONSHIPS         PropertyType = 489
	PROP_DEFAULT_SUBORDINATE_RELATIONSHIP  PropertyType = 490
	PROP_REPRESENTS                        PropertyType = 491
	/* The special property identifiers all  optional  and required  */
	/* are reserved for use in the ReadPropertyConditional and */
	/* ReadPropertyMultiple services or services not defined in this standard. */
	/* Enumerated values 0-511 are reserved for definition by ASHRAE.  */
	/* Enumerated values 512-4194303 may be used by others subject to the  */
	/* procedures and constraints described in Clause 23.  */
	/* do the max range inside of enum so that
	   compilers will allocate adequate sized datatype for enum
	   which is used to store decoding */
	MAX_BACNET_PROPERTY_ID PropertyType = 4194303
)

func Get

func Get(s string) (PropertyType, error)

type ServiceConfirmed

type ServiceConfirmed uint8
const (
	/* Alarm and Event Services */
	ServiceConfirmedAcknowledgeAlarm     ServiceConfirmed = 0
	ServiceConfirmedCOVNotification      ServiceConfirmed = 1
	ServiceConfirmedEventNotification    ServiceConfirmed = 2
	ServiceConfirmedGetAlarmSummary      ServiceConfirmed = 3
	ServiceConfirmedGetEnrollmentSummary ServiceConfirmed = 4
	ServiceConfirmedGetEventInformation  ServiceConfirmed = 29
	ServiceConfirmedSubscribeCOV         ServiceConfirmed = 5
	ServiceConfirmedSubscribeCOVProperty ServiceConfirmed = 28
	ServiceConfirmedLifeSafetyOperation  ServiceConfirmed = 27
	/* File Access Services */
	ServiceConfirmedAtomicReadFile  ServiceConfirmed = 6
	ServiceConfirmedAtomicWriteFile ServiceConfirmed = 7
	/* Object Access Services */
	ServiceConfirmedAddListElement      ServiceConfirmed = 8
	ServiceConfirmedRemoveListElement   ServiceConfirmed = 9
	ServiceConfirmedCreateObject        ServiceConfirmed = 10
	ServiceConfirmedDeleteObject        ServiceConfirmed = 11
	ServiceConfirmedReadProperty        ServiceConfirmed = 12
	ServiceConfirmedReadPropConditional ServiceConfirmed = 13
	ServiceConfirmedReadPropMultiple    ServiceConfirmed = 14
	ServiceConfirmedReadRange           ServiceConfirmed = 26
	ServiceConfirmedWriteProperty       ServiceConfirmed = 15
	ServiceConfirmedWritePropMultiple   ServiceConfirmed = 16
	/* Remote Device Management Services */
	ServiceConfirmedDeviceCommunicationControl ServiceConfirmed = 17
	ServiceConfirmedPrivateTransfer            ServiceConfirmed = 18
	ServiceConfirmedTextMessage                ServiceConfirmed = 19
	ServiceConfirmedReinitializeDevice         ServiceConfirmed = 20
	/* Virtual Terminal Services */
	ServiceConfirmedVTOpen  ServiceConfirmed = 21
	ServiceConfirmedVTClose ServiceConfirmed = 22
	ServiceConfirmedVTData  ServiceConfirmed = 23
	/* Security Services */
	ServiceConfirmedAuthenticate ServiceConfirmed = 24
	ServiceConfirmedRequestKey   ServiceConfirmed = 25
)

func (*ServiceConfirmed) String

func (s *ServiceConfirmed) String() string

type ServiceUnconfirmed

type ServiceUnconfirmed uint8
const (
	ServiceUnconfirmedIAm               ServiceUnconfirmed = 0
	ServiceUnconfirmedIHave             ServiceUnconfirmed = 1
	ServiceUnconfirmedCOVNotification   ServiceUnconfirmed = 2
	ServiceUnconfirmedEventNotification ServiceUnconfirmed = 3
	ServiceUnconfirmedPrivateTransfer   ServiceUnconfirmed = 4
	ServiceUnconfirmedTextMessage       ServiceUnconfirmed = 5
	ServiceUnconfirmedTimeSync          ServiceUnconfirmed = 6
	ServiceUnconfirmedWhoHas            ServiceUnconfirmed = 7
	ServiceUnconfirmedWhoIs             ServiceUnconfirmed = 8
	ServiceUnconfirmedUTCTimeSync       ServiceUnconfirmed = 9
	ServiceUnconfirmedWriteGroup        ServiceUnconfirmed = 10
	/* Other services to be added as they are defined. */
	/* All choice values in this production are reserved */
	/* for definition by ASHRAE. */
	/* Proprietary extensions are made by using the */
	/* UnconfirmedPrivateTransfer service. See Clause 23. */
	MaxServiceUnconfirmed ServiceUnconfirmed = 11
)

type Time

type Time struct {
	Hour        int
	Minute      int
	Second      int
	Millisecond int
}

type Unit added in v1.0.1

type Unit uint32
const (
	/* Acceleration */
	UNITS_METERS_PER_SECOND_PER_SECOND Unit = 166
	/* Area */
	UNITS_SQUARE_METERS      Unit = 0
	UNITS_SQUARE_CENTIMETERS Unit = 116
	UNITS_SQUARE_FEET        Unit = 1
	UNITS_SQUARE_INCHES      Unit = 115
	/* Currency */
	UNITS_CURRENCY1  Unit = 105
	UNITS_CURRENCY2  Unit = 106
	UNITS_CURRENCY3  Unit = 107
	UNITS_CURRENCY4  Unit = 108
	UNITS_CURRENCY5  Unit = 109
	UNITS_CURRENCY6  Unit = 110
	UNITS_CURRENCY7  Unit = 111
	UNITS_CURRENCY8  Unit = 112
	UNITS_CURRENCY9  Unit = 113
	UNITS_CURRENCY10 Unit = 114
	/* Electrical */
	UNITS_MILLIAMPERES              Unit = 2
	UNITS_AMPERES                   Unit = 3
	UNITS_AMPERES_PER_METER         Unit = 167
	UNITS_AMPERES_PER_SQUARE_METER  Unit = 168
	UNITS_AMPERE_SQUARE_METERS      Unit = 169
	UNITS_DECIBELS                  Unit = 199
	UNITS_DECIBELS_MILLIVOLT        Unit = 200
	UNITS_DECIBELS_VOLT             Unit = 201
	UNITS_FARADS                    Unit = 170
	UNITS_HENRYS                    Unit = 171
	UNITS_OHMS                      Unit = 4
	UNITS_OHM_METERS                Unit = 172
	UNITS_MILLIOHMS                 Unit = 145
	UNITS_KILOHMS                   Unit = 122
	UNITS_MEGOHMS                   Unit = 123
	UNITS_MICROSIEMENS              Unit = 190
	UNITS_MILLISIEMENS              Unit = 202
	UNITS_SIEMENS                   Unit = 173 /* 1 mho equals 1 siemens */
	UNITS_SIEMENS_PER_METER         Unit = 174
	UNITS_TESLAS                    Unit = 175
	UNITS_VOLTS                     Unit = 5
	UNITS_MILLIVOLTS                Unit = 124
	UNITS_KILOVOLTS                 Unit = 6
	UNITS_MEGAVOLTS                 Unit = 7
	UNITS_VOLT_AMPERES              Unit = 8
	UNITS_KILOVOLT_AMPERES          Unit = 9
	UNITS_MEGAVOLT_AMPERES          Unit = 10
	UNITS_VOLT_AMPERES_REACTIVE     Unit = 11
	UNITS_KILOVOLT_AMPERES_REACTIVE Unit = 12
	UNITS_MEGAVOLT_AMPERES_REACTIVE Unit = 13
	UNITS_VOLTS_PER_DEGREE_KELVIN   Unit = 176
	UNITS_VOLTS_PER_METER           Unit = 177
	UNITS_DEGREES_PHASE             Unit = 14
	UNITS_POWER_FACTOR              Unit = 15
	UNITS_WEBERS                    Unit = 178
	/* Energy */
	UNITS_JOULES                  Unit = 16
	UNITS_KILOJOULES              Unit = 17
	UNITS_KILOJOULES_PER_KILOGRAM Unit = 125
	UNITS_MEGAJOULES              Unit = 126
	UNITS_WATT_HOURS              Unit = 18
	UNITS_KILOWATT_HOURS          Unit = 19
	UNITS_MEGAWATT_HOURS          Unit = 146
	UNITS_WATT_HOURS_REACTIVE     Unit = 203
	UNITS_KILOWATT_HOURS_REACTIVE Unit = 204
	UNITS_MEGAWATT_HOURS_REACTIVE Unit = 205
	UNITS_BTUS                    Unit = 20
	UNITS_KILO_BTUS               Unit = 147
	UNITS_MEGA_BTUS               Unit = 148
	UNITS_THERMS                  Unit = 21
	UNITS_TON_HOURS               Unit = 22
	/* Enthalpy */
	UNITS_JOULES_PER_KILOGRAM_DRY_AIR     Unit = 23
	UNITS_KILOJOULES_PER_KILOGRAM_DRY_AIR Unit = 149
	UNITS_MEGAJOULES_PER_KILOGRAM_DRY_AIR Unit = 150
	UNITS_BTUS_PER_POUND_DRY_AIR          Unit = 24
	UNITS_BTUS_PER_POUND                  Unit = 117
	/* Entropy */
	UNITS_JOULES_PER_DEGREE_KELVIN          Unit = 127
	UNITS_KILOJOULES_PER_DEGREE_KELVIN      Unit = 151
	UNITS_MEGAJOULES_PER_DEGREE_KELVIN      Unit = 152
	UNITS_JOULES_PER_KILOGRAM_DEGREE_KELVIN Unit = 128
	/* Force */
	UNITS_NEWTON Unit = 153
	/* Frequency */
	UNITS_CYCLES_PER_HOUR   Unit = 25
	UNITS_CYCLES_PER_MINUTE Unit = 26
	UNITS_HERTZ             Unit = 27
	UNITS_KILOHERTZ         Unit = 129
	UNITS_MEGAHERTZ         Unit = 130
	UNITS_PER_HOUR          Unit = 131
	/* Humidity */
	UNITS_GRAMS_OF_WATER_PER_KILOGRAM_DRY_AIR Unit = 28
	UNITS_PERCENT_RELATIVE_HUMIDITY           Unit = 29
	/* Length */
	UNITS_MICROMETERS Unit = 194
	UNITS_MILLIMETERS Unit = 30
	UNITS_CENTIMETERS Unit = 118
	UNITS_KILOMETERS  Unit = 193
	UNITS_METERS      Unit = 31
	UNITS_INCHES      Unit = 32
	UNITS_FEET        Unit = 33
	/* Light */
	UNITS_CANDELAS                  Unit = 179
	UNITS_CANDELAS_PER_SQUARE_METER Unit = 180
	UNITS_WATTS_PER_SQUARE_FOOT     Unit = 34
	UNITS_WATTS_PER_SQUARE_METER    Unit = 35
	UNITS_LUMENS                    Unit = 36
	UNITS_LUXES                     Unit = 37
	UNITS_FOOT_CANDLES              Unit = 38
	/* Mass */
	UNITS_MILLIGRAMS  Unit = 196
	UNITS_GRAMS       Unit = 195
	UNITS_KILOGRAMS   Unit = 39
	UNITS_POUNDS_MASS Unit = 40
	UNITS_TONS        Unit = 41
	/* Mass Flow */
	UNITS_GRAMS_PER_SECOND       Unit = 154
	UNITS_GRAMS_PER_MINUTE       Unit = 155
	UNITS_KILOGRAMS_PER_SECOND   Unit = 42
	UNITS_KILOGRAMS_PER_MINUTE   Unit = 43
	UNITS_KILOGRAMS_PER_HOUR     Unit = 44
	UNITS_POUNDS_MASS_PER_SECOND Unit = 119
	UNITS_POUNDS_MASS_PER_MINUTE Unit = 45
	UNITS_POUNDS_MASS_PER_HOUR   Unit = 46
	UNITS_TONS_PER_HOUR          Unit = 156
	/* Power */
	UNITS_MILLIWATTS         Unit = 132
	UNITS_WATTS              Unit = 47
	UNITS_KILOWATTS          Unit = 48
	UNITS_MEGAWATTS          Unit = 49
	UNITS_BTUS_PER_HOUR      Unit = 50
	UNITS_KILO_BTUS_PER_HOUR Unit = 157
	UNITS_HORSEPOWER         Unit = 51
	UNITS_TONS_REFRIGERATION Unit = 52
	/* Pressure */
	UNITS_PASCALS                      Unit = 53
	UNITS_HECTOPASCALS                 Unit = 133
	UNITS_KILOPASCALS                  Unit = 54
	UNITS_MILLIBARS                    Unit = 134
	UNITS_BARS                         Unit = 55
	UNITS_POUNDS_FORCE_PER_SQUARE_INCH Unit = 56
	UNITS_MILLIMETERS_OF_WATER         Unit = 206
	UNITS_CENTIMETERS_OF_WATER         Unit = 57
	UNITS_INCHES_OF_WATER              Unit = 58
	UNITS_MILLIMETERS_OF_MERCURY       Unit = 59
	UNITS_CENTIMETERS_OF_MERCURY       Unit = 60
	UNITS_INCHES_OF_MERCURY            Unit = 61
	/* Temperature */
	UNITS_DEGREES_CELSIUS           Unit = 62
	UNITS_DEGREES_KELVIN            Unit = 63
	UNITS_DEGREES_KELVIN_PER_HOUR   Unit = 181
	UNITS_DEGREES_KELVIN_PER_MINUTE Unit = 182
	UNITS_DEGREES_FAHRENHEIT        Unit = 64
	UNITS_DEGREE_DAYS_CELSIUS       Unit = 65
	UNITS_DEGREE_DAYS_FAHRENHEIT    Unit = 66
	UNITS_DELTA_DEGREES_FAHRENHEIT  Unit = 120
	UNITS_DELTA_DEGREES_KELVIN      Unit = 121
	/* Time */
	UNITS_YEARS              Unit = 67
	UNITS_MONTHS             Unit = 68
	UNITS_WEEKS              Unit = 69
	UNITS_DAYS               Unit = 70
	UNITS_HOURS              Unit = 71
	UNITS_MINUTES            Unit = 72
	UNITS_SECONDS            Unit = 73
	UNITS_HUNDREDTHS_SECONDS Unit = 158
	UNITS_MILLISECONDS       Unit = 159
	/* Torque */
	UNITS_NEWTON_METERS Unit = 160
	/* Velocity */
	UNITS_MILLIMETERS_PER_SECOND Unit = 161
	UNITS_MILLIMETERS_PER_MINUTE Unit = 162
	UNITS_METERS_PER_SECOND      Unit = 74
	UNITS_METERS_PER_MINUTE      Unit = 163
	UNITS_METERS_PER_HOUR        Unit = 164
	UNITS_KILOMETERS_PER_HOUR    Unit = 75
	UNITS_FEET_PER_SECOND        Unit = 76
	UNITS_FEET_PER_MINUTE        Unit = 77
	UNITS_MILES_PER_HOUR         Unit = 78
	/* Volume */
	UNITS_CUBIC_FEET       Unit = 79
	UNITS_CUBIC_METERS     Unit = 80
	UNITS_IMPERIAL_GALLONS Unit = 81
	UNITS_MILLILITERS      Unit = 197
	UNITS_LITERS           Unit = 82
	UNITS_US_GALLONS       Unit = 83
	/* Volumetric Flow */
	UNITS_CUBIC_FEET_PER_SECOND       Unit = 142
	UNITS_CUBIC_FEET_PER_MINUTE       Unit = 84
	UNITS_CUBIC_FEET_PER_HOUR         Unit = 191
	UNITS_CUBIC_METERS_PER_SECOND     Unit = 85
	UNITS_CUBIC_METERS_PER_MINUTE     Unit = 165
	UNITS_CUBIC_METERS_PER_HOUR       Unit = 135
	UNITS_IMPERIAL_GALLONS_PER_MINUTE Unit = 86
	UNITS_MILLILITERS_PER_SECOND      Unit = 198
	UNITS_LITERS_PER_SECOND           Unit = 87
	UNITS_LITERS_PER_MINUTE           Unit = 88
	UNITS_LITERS_PER_HOUR             Unit = 136
	UNITS_US_GALLONS_PER_MINUTE       Unit = 89
	UNITS_US_GALLONS_PER_HOUR         Unit = 192
	/* Other */
	UNITS_DEGREES_ANGULAR                        Unit = 90
	UNITS_DEGREES_CELSIUS_PER_HOUR               Unit = 91
	UNITS_DEGREES_CELSIUS_PER_MINUTE             Unit = 92
	UNITS_DEGREES_FAHRENHEIT_PER_HOUR            Unit = 93
	UNITS_DEGREES_FAHRENHEIT_PER_MINUTE          Unit = 94
	UNITS_JOULE_SECONDS                          Unit = 183
	UNITS_KILOGRAMS_PER_CUBIC_METER              Unit = 186
	UNITS_KW_HOURS_PER_SQUARE_METER              Unit = 137
	UNITS_KW_HOURS_PER_SQUARE_FOOT               Unit = 138
	UNITS_MEGAJOULES_PER_SQUARE_METER            Unit = 139
	UNITS_MEGAJOULES_PER_SQUARE_FOOT             Unit = 140
	UNITS_NO_UNITS                               Unit = 95
	UNITS_NEWTON_SECONDS                         Unit = 187
	UNITS_NEWTONS_PER_METER                      Unit = 188
	UNITS_PARTS_PER_MILLION                      Unit = 96
	UNITS_PARTS_PER_BILLION                      Unit = 97
	UNITS_PERCENT                                Unit = 98
	UNITS_PERCENT_OBSCURATION_PER_FOOT           Unit = 143
	UNITS_PERCENT_OBSCURATION_PER_METER          Unit = 144
	UNITS_PERCENT_PER_SECOND                     Unit = 99
	UNITS_PER_MINUTE                             Unit = 100
	UNITS_PER_SECOND                             Unit = 101
	UNITS_PSI_PER_DEGREE_FAHRENHEIT              Unit = 102
	UNITS_RADIANS                                Unit = 103
	UNITS_RADIANS_PER_SECOND                     Unit = 184
	UNITS_REVOLUTIONS_PER_MINUTE                 Unit = 104
	UNITS_SQUARE_METERS_PER_NEWTON               Unit = 185
	UNITS_WATTS_PER_METER_PER_DEGREE_KELVIN      Unit = 189
	UNITS_WATTS_PER_SQUARE_METER_DEGREE_KELVIN   Unit = 141
	UNITS_PER_MILLE                              Unit = 207
	UNITS_GRAMS_PER_GRAM                         Unit = 208
	UNITS_KILOGRAMS_PER_KILOGRAM                 Unit = 209
	UNITS_GRAMS_PER_KILOGRAM                     Unit = 210
	UNITS_MILLIGRAMS_PER_GRAM                    Unit = 211
	UNITS_MILLIGRAMS_PER_KILOGRAM                Unit = 212
	UNITS_GRAMS_PER_MILLILITER                   Unit = 213
	UNITS_GRAMS_PER_LITER                        Unit = 214
	UNITS_MILLIGRAMS_PER_LITER                   Unit = 215
	UNITS_MICROGRAMS_PER_LITER                   Unit = 216
	UNITS_GRAMS_PER_CUBIC_METER                  Unit = 217
	UNITS_MILLIGRAMS_PER_CUBIC_METER             Unit = 218
	UNITS_MICROGRAMS_PER_CUBIC_METER             Unit = 219
	UNITS_NANOGRAMS_PER_CUBIC_METER              Unit = 220
	UNITS_GRAMS_PER_CUBIC_CENTIMETER             Unit = 221
	UNITS_BECQUERELS                             Unit = 222
	UNITS_KILOBECQUERELS                         Unit = 223
	UNITS_MEGABECQUERELS                         Unit = 224
	UNITS_GRAY                                   Unit = 225
	UNITS_MILLIGRAY                              Unit = 226
	UNITS_MICROGRAY                              Unit = 227
	UNITS_SIEVERTS                               Unit = 228
	UNITS_MILLISIEVERTS                          Unit = 229
	UNITS_MICROSIEVERTS                          Unit = 230
	UNITS_MICROSIEVERTS_PER_HOUR                 Unit = 231
	UNITS_DECIBELS_A                             Unit = 232
	UNITS_NEPHELOMETRIC_TURBIDITY_UNIT           Unit = 233
	UNITS_PH                                     Unit = 234
	UNITS_GRAMS_PER_SQUARE_METER                 Unit = 235
	UNITS_MINUTES_PER_DEGREE_KELVIN              Unit = 236
	UNITS_OHM_METER_SQUARED_PER_METER            Unit = 237
	UNITS_AMPERE_SECONDS                         Unit = 238
	UNITS_VOLT_AMPERE_HOURS                      Unit = 239
	UNITS_KILOVOLT_AMPERE_HOURS                  Unit = 240
	UNITS_MEGAVOLT_AMPERE_HOURS                  Unit = 241
	UNITS_VOLT_AMPERE_HOURS_REACTIVE             Unit = 242
	UNITS_KILOVOLT_AMPERE_HOURS_REACTIVE         Unit = 243
	UNITS_MEGAVOLT_AMPERE_HOURS_REACTIVE         Unit = 244
	UNITS_VOLT_SQUARE_HOURS                      Unit = 245
	UNITS_AMPERE_SQUARE_HOURS                    Unit = 246
	UNITS_JOULE_PER_HOURS                        Unit = 247
	UNITS_CUBIC_FEET_PER_DAY                     Unit = 248
	UNITS_CUBIC_METERS_PER_DAY                   Unit = 249
	UNITS_WATT_HOURS_PER_CUBIC_METER             Unit = 250
	UNITS_JOULES_PER_CUBIC_METER                 Unit = 251
	UNITS_MOLE_PERCENT                           Unit = 252
	UNITS_PASCAL_SECONDS                         Unit = 253
	UNITS_MILLION_STANDARD_CUBIC_FEET_PER_MINUTE Unit = 254
	/* 255 - NOT USED */
	UNITS_STANDARD_CUBIC_FEET_PER_DAY          Unit = 47808
	UNITS_MILLION_STANDARD_CUBIC_FEET_PER_DAY  Unit = 47809
	UNITS_THOUSAND_CUBIC_FEET_PER_DAY          Unit = 47810
	UNITS_THOUSAND_STANDARD_CUBIC_FEET_PER_DAY Unit = 47811
	UNITS_POUNDS_MASS_PER_DAY                  Unit = 47812
	/* 47813 - NOT USED */
	UNITS_MILLIREMS          Unit = 47814
	UNITS_MILLIREMS_PER_HOUR Unit = 47815
	/* Enumerated values 0-255 and 47808-49999 are reserved for
	   definition by ASHRAE. */
	/* Enumerated values 256-47807 and 50000-65535 may be used by others
	   subject to the procedures and constraints described in Clause 23. */
	/* do the proprietary range inside of enum so that
	   compilers will allocate adequate sized datatype for enum
	   which is used to store decoding */
	UNITS_PROPRIETARY_RANGE_MIN Unit = 256
	UNITS_PROPRIETARY_RANGE_MAX Unit = 65535
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL