Documentation
¶
Index ¶
- type Integration
- func (integ *Integration) PublishBasestationEvent(bsEui common.EUI64, event string, pb *bs.BasestationUplink) error
- func (integ *Integration) PublishEndnodeEvent(bsEui common.EUI64, event string, pb *bs.EndnodeUplink) error
- func (integ *Integration) PublishState(ctx context.Context, bsEui common.EUI64, pb *bs.BasestationState) error
- func (integ *Integration) SetBasestationSubscription(subscribe bool, bsEui common.EUI64) error
- func (integ *Integration) SetServerCommandHandler(f func(*bs.ServerCommand))
- func (integ *Integration) SetServerResponseHandler(f func(*bs.ServerResponse))
- func (integ *Integration) Start() error
- func (integ *Integration) Stop() error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Integration ¶
type Integration struct {
// contains filtered or unexported fields
}
Integration implements a MQTT Integration.
func NewIntegration ¶
func NewIntegration(conf config.Config) (*Integration, error)
NewIntegration creates a new Integration.
func (*Integration) PublishBasestationEvent ¶
func (integ *Integration) PublishBasestationEvent(bsEui common.EUI64, event string, pb *bs.BasestationUplink) error
Publish basestation messages.
func (*Integration) PublishEndnodeEvent ¶
func (integ *Integration) PublishEndnodeEvent(bsEui common.EUI64, event string, pb *bs.EndnodeUplink) error
Publish endnode messages.
func (*Integration) PublishState ¶
func (integ *Integration) PublishState(ctx context.Context, bsEui common.EUI64, pb *bs.BasestationState) error
Publish basestation messages.
func (*Integration) SetBasestationSubscription ¶
func (integ *Integration) SetBasestationSubscription(subscribe bool, bsEui common.EUI64) error
Updates the subscription for the given EUI.
func (*Integration) SetServerCommandHandler ¶
func (integ *Integration) SetServerCommandHandler(f func(*bs.ServerCommand))
Set handler for server command messages
func (*Integration) SetServerResponseHandler ¶
func (integ *Integration) SetServerResponseHandler(f func(*bs.ServerResponse))
Set handler for server command messages
Click to show internal directories.
Click to hide internal directories.