Documentation
¶
Index ¶
Constants ¶
View Source
const ( ObjectTypeAnalogValue uint16 = 2 ObjectTypeBinaryValue uint16 = 5 ObjectTypeMultiStateValue uint16 = 19 )
BACnet object types not defined in the library.
View Source
const ( ErrorClassProperty uint8 = 2 ErrorCodeInvalidDataType uint8 = 9 )
BACnet error class/code not defined in the library.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Identity
DeviceID string
DeviceInstance int // BACnet device instance number (0..4194303)
// Network
Addr string // bind address, e.g. "0.0.0.0:47808" or "127.0.0.1:0" for ephemeral port in tests
// Behavior
SyncInterval time.Duration // retained for parity; unused by WhoIs handling
}
Config for the BACnet controller.
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(svc thermostat.Service, cfg Config, logger *slog.Logger) (*Controller, error)
New creates a BACnet controller. DeviceInstance must be in the BACnet range 0..4194303.
func (*Controller) LocalAddr ¶
func (c *Controller) LocalAddr() net.Addr
LocalAddr returns the controller's bound address (useful for tests).
Click to show internal directories.
Click to hide internal directories.