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

Commit

Permalink
Store encrypted_time in GatewayMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
gomezjdaniel committed Jun 29, 2017
1 parent 0b537f7 commit 16d707f
Show file tree
Hide file tree
Showing 4 changed files with 87 additions and 87 deletions.
168 changes: 83 additions & 85 deletions api/gateway/gateway.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions api/gateway/gateway.proto
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,8 @@ message RxMetadata {
// Frequency offset
uint64 frequency_offset = 8;

// Encrypted time from the Gateway FPGA
bytes encrypted_time = 10;
// Encrypted time from the Gateway FPGA in base64
string encrypted_time = 10;
}

LocationMetadata location = 41;
Expand Down
1 change: 1 addition & 0 deletions core/handler/convert_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func (h *handler) ConvertMetadata(ctx ttnlog.Interface, ttnUp *pb_broker.Dedupli
gatewayMetadata.SNR = antenna.Snr
gatewayMetadata.FTime = antenna.Ftime
gatewayMetadata.FrequencyOffset = antenna.FrequencyOffset
gatewayMetadata.EncryptedTime = antenna.EncryptedTime
appUp.Metadata.Gateways = append(appUp.Metadata.Gateways, gatewayMetadata)
}
} else {
Expand Down
1 change: 1 addition & 0 deletions core/types/gateway_metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ type GatewayMetadata struct {
FTime uint64 `json:"ftime,omitempty"`
FrequencyOffset uint64 `json:"frequency_offset,omitempty"`
SNR float32 `json:"snr,omitempty"`
EncryptedTime string `json:"encrypted_time,omitempty"`
RFChain uint32 `json:"rf_chain,omitempty"`
LocationMetadata
}

0 comments on commit 16d707f

Please sign in to comment.