Documentation ¶
Index ¶
- func WithApplicationDeviceInfoCache(deviceInfoCache *appservice.DeviceInfoCache) GenericApplier[*Application]
- func WithApplicationLocalDeviceObject(localDevice LocalDeviceObject) GenericApplier[*Application]
- type Application
- func (a *Application) AddObject(obj LocalDeviceObject) error
- func (a *Application) DeleteObject(obj LocalDeviceObject) error
- func (a *Application) GetDeviceInfoCache() *appservice.DeviceInfoCache
- func (a *Application) GetObjectId(objectId string) LocalDeviceObject
- func (a *Application) GetObjectName(objectName string) LocalDeviceObject
- func (a *Application) GetServicesSupported() []string
- func (a *Application) Indication(args Args, kwArgs KWArgs) error
- func (a *Application) IterObjects() []LocalDeviceObject
- func (a *Application) RegisterHelperFn(name string, fn func(apdu APDU) error) error
- func (a *Application) Request(args Args, kwArgs KWArgs) error
- func (d *Application) Serialize() ([]byte, error)
- func (d *Application) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (d *Application) String() string
- type ApplicationIOController
- func (a *ApplicationIOController) Close() error
- func (a *ApplicationIOController) Confirmation(args Args, kwArgs KWArgs) error
- func (a *ApplicationIOController) ProcessIO(iocb IOCBContract) error
- func (a *ApplicationIOController) Request(args Args, kwArgs KWArgs) error
- func (d *ApplicationIOController) Serialize() ([]byte, error)
- func (d *ApplicationIOController) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
- func (d *ApplicationIOController) String() string
- type ApplicationRequirements
- type BIPForeignApplication
- type BIPNetworkApplication
- type BIPSimpleApplication
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithApplicationDeviceInfoCache ¶
func WithApplicationDeviceInfoCache(deviceInfoCache *appservice.DeviceInfoCache) GenericApplier[*Application]
func WithApplicationLocalDeviceObject ¶
func WithApplicationLocalDeviceObject(localDevice LocalDeviceObject) GenericApplier[*Application]
Types ¶
type Application ¶
type Application struct { ApplicationServiceElementContract Collector // contains filtered or unexported fields }
func NewApplication ¶
func NewApplication(localLog zerolog.Logger, options ...Option) (*Application, error)
func (*Application) AddObject ¶
func (a *Application) AddObject(obj LocalDeviceObject) error
AddObject adds an object to the local collection
func (*Application) DeleteObject ¶
func (a *Application) DeleteObject(obj LocalDeviceObject) error
DeleteObject deletes an object from the local collection
func (*Application) GetDeviceInfoCache ¶
func (a *Application) GetDeviceInfoCache() *appservice.DeviceInfoCache
func (*Application) GetObjectId ¶
func (a *Application) GetObjectId(objectId string) LocalDeviceObject
GetObjectId returns a local object or None.
func (*Application) GetObjectName ¶
func (a *Application) GetObjectName(objectName string) LocalDeviceObject
GetObjectName returns a local object or None.
func (*Application) GetServicesSupported ¶
func (a *Application) GetServicesSupported() []string
GetServicesSupported returns a ServicesSupported bit string based in introspection, look for helper methods that
match confirmed and unconfirmed services.
TODO: match that with readWriteModel.BACnetServicesSupported
func (*Application) Indication ¶
func (a *Application) Indication(args Args, kwArgs KWArgs) error
func (*Application) IterObjects ¶
func (a *Application) IterObjects() []LocalDeviceObject
IterObjects iterates over the objects
func (*Application) RegisterHelperFn ¶
func (a *Application) RegisterHelperFn(name string, fn func(apdu APDU) error) error
func (*Application) Request ¶
func (a *Application) Request(args Args, kwArgs KWArgs) error
func (*Application) Serialize ¶
func (d *Application) Serialize() ([]byte, error)
func (*Application) SerializeWithWriteBuffer ¶
func (d *Application) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (*Application) String ¶
func (d *Application) String() string
type ApplicationIOController ¶
type ApplicationIOController struct { *IOController *Application // contains filtered or unexported fields }
func NewApplicationIOController ¶
func NewApplicationIOController(localLog zerolog.Logger, options ...Option) (*ApplicationIOController, error)
func (*ApplicationIOController) Close ¶
func (a *ApplicationIOController) Close() error
func (*ApplicationIOController) Confirmation ¶
func (a *ApplicationIOController) Confirmation(args Args, kwArgs KWArgs) error
func (*ApplicationIOController) ProcessIO ¶
func (a *ApplicationIOController) ProcessIO(iocb IOCBContract) error
func (*ApplicationIOController) Request ¶
func (a *ApplicationIOController) Request(args Args, kwArgs KWArgs) error
func (*ApplicationIOController) Serialize ¶
func (d *ApplicationIOController) Serialize() ([]byte, error)
func (*ApplicationIOController) SerializeWithWriteBuffer ¶
func (d *ApplicationIOController) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (*ApplicationIOController) String ¶
func (d *ApplicationIOController) String() string
type ApplicationRequirements ¶
type ApplicationRequirements interface { ApplicationServiceElementRequirements }
type BIPForeignApplication ¶
type BIPForeignApplication struct { *ApplicationIOController *WhoIsIAmServices *ReadWritePropertyServices // contains filtered or unexported fields }
func NewBIPForeignApplication ¶
func NewBIPForeignApplication(localLog zerolog.Logger, localDevice LocalDeviceObject, localAddress Address, bbmdAddress *Address, bbmdTTL uint16, options ...Option) (*BIPForeignApplication, error)
func (*BIPForeignApplication) Close ¶
func (b *BIPForeignApplication) Close() error
type BIPNetworkApplication ¶
type BIPNetworkApplication struct { *NetworkServiceElement // contains filtered or unexported fields }
func NewBIPNetworkApplication ¶
func NewBIPNetworkApplication(localLog zerolog.Logger, localAddress Address, options ...Option) (*BIPNetworkApplication, error)
type BIPSimpleApplication ¶
type BIPSimpleApplication struct { *ApplicationIOController *WhoIsIAmServices *ReadWritePropertyServices // contains filtered or unexported fields }
func NewBIPSimpleApplication ¶
func NewBIPSimpleApplication(localLog zerolog.Logger, localDevice LocalDeviceObject, localAddress Address, options ...Option) (*BIPSimpleApplication, error)
func (*BIPSimpleApplication) Close ¶
func (b *BIPSimpleApplication) Close() error
func (*BIPSimpleApplication) Serialize ¶
func (d *BIPSimpleApplication) Serialize() ([]byte, error)
func (*BIPSimpleApplication) SerializeWithWriteBuffer ¶
func (d *BIPSimpleApplication) SerializeWithWriteBuffer(ctx context.Context, writeBuffer utils.WriteBuffer) error
func (*BIPSimpleApplication) String ¶
func (d *BIPSimpleApplication) String() string
Click to show internal directories.
Click to hide internal directories.