prts

package
v2.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ObjectProprietaryMin = 128
	MaxObjectType        = 1024
	ObjectTypeNone       = 65535 // 0xFFFFu — sentinel value defined by the BACnet spec
	ObjectTypeNoneString = "None"
)

BACnet object type range constants. Enumerated values 0-127 are reserved for definition by ASHRAE. Enumerated values 128-1023 may be used by others subject to the procedures and constraints described in Clause 23. Refer: https://github.com/bacnet-stack/bacnet-stack/blob/bacnet-stack-1.0/src/bacnet/bacenum.h#L1242-L1247

Variables

This section is empty.

Functions

func GetBACnetObjectTypeName

func GetBACnetObjectTypeName(objectType int) (string, error)

GetBACnetObjectTypeName returns the human-readable string for a BACnet object type ID.

func GetBACnetObjectTypeString added in v2.0.17

func GetBACnetObjectTypeString(objectType int) (string, error)

GetBACnetObjectTypeString returns the BACnet object type name for use in DTOs. The name is all lowercase with spaces replaced by underscores (e.g. "analog_input").

func GetBACnetPropertyString added in v2.0.17

func GetBACnetPropertyString(propertyID int) (string, error)

GetBACnetPropertyString returns the normalized name for a BACnet property ID. The name is all lowercase with underscores (e.g. "present_value").

Types

This section is empty.

Jump to

Keyboard shortcuts

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