Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Use of right argument index in ttnctl
Browse files Browse the repository at this point in the history
  • Loading branch information
KtorZ committed Mar 19, 2016
1 parent 889d6e3 commit 4d11c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ttnctl/cmd/uplink.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ var uplinkCmd = &cobra.Command{
FCnt: uint32(fcnt),
}
macPayload.FPort = 1
macPayload.FRMPayload = []lorawan.Payload{&lorawan.DataPayload{Bytes: []byte(args[4])}}
macPayload.FRMPayload = []lorawan.Payload{&lorawan.DataPayload{Bytes: []byte(args[3])}}
if err := macPayload.EncryptFRMPayload(appSKey); err != nil {
ctx.Fatalf("Unable to encrypt frame payload: %s", err)
}
Expand Down

0 comments on commit 4d11c03

Please sign in to comment.