Documentation ¶
Index ¶
- Constants
- type Client
- func (c *Client) Close()
- func (c *Client) Objects(dev bactype.Device) (bactype.Device, error)
- func (c *Client) ReadMultiProperty(dev bactype.Device, rp bactype.ReadMultipleProperty) (bactype.ReadMultipleProperty, error)
- func (c *Client) ReadProperty(dest bactype.Device, rp bactype.ReadPropertyData) (bactype.ReadPropertyData, error)
- func (c *Client) WhoIs(low, high int) ([]types.Device, error)
Constants ¶
const ArrayAll = 0xFFFFFFFF
ArrayAll is used when reading/writting to a property to read/write the entire array
const DefaultPort = 0xBAC0
DefaultPort that BacnetIP will use if a port is not given. Valid ports for the bacnet protocol is between 0xBAC0 and 0xBAC9
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) Close ¶
func (c *Client) Close()
Close free resources for the client. Always call this function when using NewClient
func (*Client) Objects ¶
Objects retrieves all of the objects within the given device and returns a device with these objects. Along with the list of objects, it will also gather additional information from the object such as the name and description of the objects. The device returned contains all of the name and description fields for all objects
func (*Client) ReadMultiProperty ¶
func (c *Client) ReadMultiProperty(dev bactype.Device, rp bactype.ReadMultipleProperty) (bactype.ReadMultipleProperty, error)
ReadMultipleProperty uses the given device and read property request to read from a device. Along with being able to read multiple properties from a device, it can also read these properties from multiple objects. This is a good feature to read all present values of every object in the device. This is a batch operation compared to a ReadProperty and should be used in place when reading more than two objects/properties.
func (*Client) ReadProperty ¶
func (c *Client) ReadProperty(dest bactype.Device, rp bactype.ReadPropertyData) (bactype.ReadPropertyData, error)
ReadProperty reads a single property from a single object in the given device.