Documentation ¶
Index ¶
- type Backend
- func (b *Backend) Close()
- func (b *Backend) ConfigPacketChan() chan gw.GatewayConfigPacket
- func (b *Backend) PublishGatewayRX(mac lorawan.EUI64, rxPacket gw.RXPacketBytes) error
- func (b *Backend) PublishGatewayStats(mac lorawan.EUI64, stats gw.GatewayStatsPacket) error
- func (b *Backend) PublishGatewayTXAck(mac lorawan.EUI64, ack gw.TXAck) error
- func (b *Backend) SubscribeGatewayTopics(mac lorawan.EUI64) error
- func (b *Backend) TXPacketChan() chan gw.TXPacketBytes
- func (b *Backend) UnSubscribeGatewayTopics(mac lorawan.EUI64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend struct { UplinkTemplate *template.Template DownlinkTemplate *template.Template StatsTemplate *template.Template AckTemplate *template.Template ConfigTemplate *template.Template // contains filtered or unexported fields }
Backend implements a MQTT pub-sub backend.
func NewBackend ¶
func NewBackend(c newMQTT.BackendConfig) (*Backend, error)
NewBackend creates a new Backend.
func (*Backend) ConfigPacketChan ¶
func (b *Backend) ConfigPacketChan() chan gw.GatewayConfigPacket
ConfigPacketChan returns the ConfigPacketChan channel.
func (*Backend) PublishGatewayRX ¶
PublishGatewayRX publishes a RX packet to the MQTT broker.
func (*Backend) PublishGatewayStats ¶
PublishGatewayStats publishes a GatewayStatsPacket to the MQTT broker.
func (*Backend) PublishGatewayTXAck ¶
PublishGatewayTXAck publishes a TX ack to the MQTT broker.
func (*Backend) SubscribeGatewayTopics ¶
SubscribeGatewayTopics subscribes the backend to the gateway topics. (downlink and configuration).
func (*Backend) TXPacketChan ¶
func (b *Backend) TXPacketChan() chan gw.TXPacketBytes
TXPacketChan returns the TXPacketBytes channel.
Click to show internal directories.
Click to hide internal directories.