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

Method GetMacPayload

pkg/ttnpb/lorawan.pb.go:2115–2120  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

2113}
2114
2115func (x *Message) GetMacPayload() *MACPayload {
2116 if x, ok := x.GetPayload().(*Message_MacPayload); ok {
2117 return x.MacPayload
2118 }
2119 return nil
2120}
2121
2122func (x *Message) GetJoinRequestPayload() *JoinRequestPayload {
2123 if x, ok := x.GetPayload().(*Message_JoinRequestPayload); ok {

Callers 15

FromUplinkMessageMethod · 0.95
TestProcessDownlinkTaskFunction · 0.95
ValidateFieldsMethod · 0.95
FieldIsZeroMethod · 0.95
EndDeviceIdentifiersMethod · 0.95
AppendMessageFunction · 0.45
TestGenerateDataDownlinkFunction · 0.45
minAFCntDownFunction · 0.45
nextDataDownlinkSlotFunction · 0.45
ScheduleMethod · 0.45

Calls 1

GetPayloadMethod · 0.95

Tested by 5

TestProcessDownlinkTaskFunction · 0.76
TestGenerateDataDownlinkFunction · 0.36
TestADRLossRateFunction · 0.36