AppendUplink encodes uplink MAC command cmd, appends it to b and returns any errors encountered.
(phy band.Band, b []byte, cmd *ttnpb.MACCommand)
| 1569 | |
| 1570 | // AppendUplink encodes uplink MAC command cmd, appends it to b and returns any errors encountered. |
| 1571 | func (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. |
| 1576 | func (spec MACCommandSpec) AppendDownlink(phy band.Band, b []byte, cmd *ttnpb.MACCommand) ([]byte, error) { |
no test coverage detected