Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type LorhammerGateway ¶
type LorhammerGateway struct { Nodes []*model.Node NsAddress string MacAddress lorawan.EUI64 RxpkDate int64 PayloadsReplayMaxLaps int AllLapsCompleted bool ReceiveTimeoutTime time.Duration }
LorhammerGateway : internal gateway for pointer receiver usage
func NewGateway ¶
func NewGateway(nbNode int, init model.Init) *LorhammerGateway
NewGateway return a new gateway with node configured
func (LorhammerGateway) ConvertToGateway ¶
func (gateway LorhammerGateway) ConvertToGateway() model.Gateway
ConvertToGateway : convert internal gateway to model gateway
func (*LorhammerGateway) Join ¶
func (gateway *LorhammerGateway) Join(prometheus metrics.Prometheus, withJoin bool) error
Join send first pull datata to be discovered by network server Then send a JoinRequest packet if `withJoin` is set in scenario file
func (*LorhammerGateway) Start ¶
func (gateway *LorhammerGateway) Start(prometheus metrics.Prometheus, fcnt uint32) error
Start send push data packet and listen for ack
Click to show internal directories.
Click to hide internal directories.