mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-17 23:08:23 +00:00
Add missing channel and rf_chain fields.
This is not used by ChirpStack, but the chirpstack-udp-bridge expects to receive this information from the ChirpStack Concentratord.
This commit is contained in:
2
api/rust/Cargo.lock
generated
vendored
2
api/rust/Cargo.lock
generated
vendored
@ -121,7 +121,7 @@ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
||||
|
||||
[[package]]
|
||||
name = "chirpstack_api"
|
||||
version = "4.0.0-test.14"
|
||||
version = "4.0.0-test.17"
|
||||
dependencies = [
|
||||
"hex",
|
||||
"pbjson",
|
||||
|
16
api/rust/proto/chirpstack/gw/gw.proto
vendored
16
api/rust/proto/chirpstack/gw/gw.proto
vendored
@ -331,21 +331,27 @@ message UplinkRxInfo {
|
||||
// Note: only available for LoRa modulation.
|
||||
float snr = 7;
|
||||
|
||||
// Channel.
|
||||
uint32 channel = 8;
|
||||
|
||||
// RF chain.
|
||||
uint32 rf_chain = 9;
|
||||
|
||||
// Board.
|
||||
uint32 board = 8;
|
||||
uint32 board = 10;
|
||||
|
||||
// Antenna.
|
||||
uint32 antenna = 9;
|
||||
uint32 antenna = 11;
|
||||
|
||||
// Location.
|
||||
common.Location location = 10;
|
||||
common.Location location = 12;
|
||||
|
||||
// Gateway specific context.
|
||||
// This value must be returned to the gateway on (Class-A) downlink.
|
||||
bytes context = 11;
|
||||
bytes context = 13;
|
||||
|
||||
// Properties.
|
||||
google.protobuf.Struct metadata = 12;
|
||||
google.protobuf.Struct metadata = 14;
|
||||
}
|
||||
|
||||
message DownlinkTxInfoLegacy {
|
||||
|
2
api/rust/src/gw.rs
vendored
2
api/rust/src/gw.rs
vendored
@ -121,6 +121,8 @@ impl UplinkFrame {
|
||||
fine_time_since_gps_epoch: None,
|
||||
rssi: rx_info.rssi,
|
||||
snr: rx_info.lora_snr as f32,
|
||||
channel: rx_info.channel,
|
||||
rf_chain: rx_info.rf_chain,
|
||||
board: rx_info.board,
|
||||
antenna: rx_info.antenna,
|
||||
location: rx_info.location.clone(),
|
||||
|
Reference in New Issue
Block a user