Versions in this module Expand all Collapse all v0 v0.2.5 May 22, 2024 v0.2.4 May 21, 2024 v0.2.3 May 21, 2024 v0.2.2 May 9, 2024 v0.2.1 Aug 21, 2023 Changes in this version + var ObjectNil = errors.New("object list can not be empty") + type Device struct + DeviceID int + DeviceName string + Ip string + MacMSTP int + MaxApdu uint32 + NetworkNumber int + Port int + Segmentation uint32 + StoreID string + VendorName string + func NewDevice(net *Network, device *Device) (*Device, error) + func (device *Device) DeviceDiscover(options *bacnet.WhoIsOpts) ([]*Device, error) + func (device *Device) DeviceObjects(deviceID btypes.ObjectInstance, checkAPDU bool) (objectList []btypes.ObjectID, err error) + func (device *Device) GetDeviceDetails(deviceID btypes.ObjectInstance) (resp *DeviceDetails, err error) + func (device *Device) GetDevicePoints(deviceID btypes.ObjectInstance) (resp []*PointDetails, err error) + func (device *Device) PointDetails(pnt *Point) (resp *PointDetails, err error) + func (device *Device) PointReadBool(pnt *Point) (uint32, error) + func (device *Device) PointReadFloat32(pnt *Point) (float32, error) + func (device *Device) PointReadMultiState(pnt *Point) (uint32, error) + func (device *Device) PointReadPriority(pnt *Point) (pri *priority.Float32, err error) + func (device *Device) PointReleasePriority(pnt *Point, pri uint8) error + func (device *Device) PointWriteAnalogue(pnt *Point, value float32) error + func (device *Device) PointWriteBool(pnt *Point, value uint32) error + func (device *Device) PointWriteMultiState(pnt *Point, value uint32) error + func (device *Device) Read(obj *Object) (out btypes.PropertyData, err error) + func (device *Device) ReadDeviceName(ObjectID btypes.ObjectInstance) (string, error) + func (device *Device) ReadPointName(pnt *Point) (string, error) + func (device *Device) ReadString(obj *Object) (string, error) + func (device *Device) ToBitString(d btypes.PropertyData) *btypes.BitString + func (device *Device) Whois(options *bacnet.WhoIsOpts) ([]btypes.Device, error) + func (device *Device) Write(write *Write) error + func (device *Device) WriteDeviceName(ObjectID btypes.ObjectInstance, value string) error + func (device *Device) WritePointName(pnt *Point, value string) error + type DeviceDetails struct + MaxApdu uint32 + Name string + ProtocolServicesSupported *btypes.BitString + Segmentation uint32 + VendorName string + type DevicePoints struct + MaxApdu uint32 + Name string + ProtocolServicesSupported *btypes.BitString + Segmentation uint32 + VendorName string + type Network struct + Interface string + Ip string + Port int + Store *Store + StoreID string + SubnetCIDR int + func New(net *Network) (*Network, error) + func (net *Network) GetDeviceDetails(device btypes.Device) (resp *DeviceDetails, err error) + func (net *Network) NetworkClose(closeLogs bool) error + func (net *Network) NetworkDiscover(options *bacnet.WhoIsOpts) ([]btypes.Device, error) + func (net *Network) NetworkRun() + func (net *Network) Whois(options *bacnet.WhoIsOpts) ([]btypes.Device, error) + type Object struct + ArrayIndex uint32 + ObjectID btypes.ObjectInstance + ObjectType btypes.ObjectType + Prop btypes.PropertyType + type Point struct + ObjectID btypes.ObjectInstance + ObjectType btypes.ObjectType + ReadPresentValue bool + ReadPriority bool + WriteNull bool + WritePriority uint8 + WriteValue interface{} + type PointDetails struct + Name string + ObjectID btypes.ObjectInstance + ObjectType btypes.ObjectType + PointType string + Unit uint32 + UnitString string + type Store struct + BacStore *store.Handler + func NewStore() *Store + func (store *Store) GetDevice(uuid string) (*Device, error) + func (store *Store) GetNetwork(uuid string) (*Network, error) + func (store *Store) NewNetwork(storeID, iface, ip string, port, subnet int) error + func (store *Store) UpdateDevice(storeID string, net *Network, device *Device) error + type Write struct + ObjectID btypes.ObjectInstance + ObjectType btypes.ObjectType + Prop btypes.PropertyType + WriteNull bool + WritePriority uint8 + WriteValue interface{} v0.2.0-gary Aug 6, 2023