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

Method AppendUplink

pkg/encoding/lorawan/mac.go:1571–1573  ·  view source on GitHub ↗

AppendUplink encodes uplink 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

1569
1570// AppendUplink encodes uplink MAC command cmd, appends it to b and returns any errors encountered.
1571func (spec MACCommandSpec) AppendUplink(phy band.Band, b []byte, cmd *ttnpb.MACCommand) ([]byte, error) {
1572 return spec.append(phy, b, true, cmd)
1573}
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) {

Callers 1

MakeUplinkMACBufferFunction · 0.80

Calls 1

appendMethod · 0.95

Tested by

no test coverage detected