MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / AppendDownlink

Method AppendDownlink

pkg/encoding/lorawan/mac.go:1576–1578  ·  view source on GitHub ↗

AppendDownlink encodes downlink MAC command cmd, appends it to b and returns any errors encountered.

(phy band.Band, b []byte, cmd *ttnpb.MACCommand)

Source from the content-addressed store, hash-verified

1574
1575// AppendDownlink encodes downlink MAC command cmd, appends it to b and returns any errors encountered.
1576func (spec MACCommandSpec) AppendDownlink(phy band.Band, b []byte, cmd *ttnpb.MACCommand) ([]byte, error) {
1577 return spec.append(phy, b, false, cmd)
1578}

Callers 2

generateDataDownlinkMethod · 0.80
MakeDownlinkMACBufferFunction · 0.80

Calls 1

appendMethod · 0.95

Tested by

no test coverage detected