rfChain field

Viewed 18

Hello,

In the uplink messages I see rfChain field.

I am using SX1303 based concentartors in my gateways. However I used mixed packet forwarders. Some use UDP and some use MQTT (Chirpstack gateway OS)

Question is, sometimes it is missing. Is it ommited on purpose? Perhaps if rfChain = 0 then it is not included in uplink at all?

See below examples. #1 and #2 has rfChain field, #3 does not.

WhatsApp Image 2025-10-22 at 13.03.05_c122ea5b.jpg

1 Answers

Question is, sometimes it is missing. Is it ommited on purpose? Perhaps if rfChain = 0 then it is not included in uplink at all?

That is indeed the answer. All default values are not encoded to JSON. The main reason for not encoding the default values is that else, you would also get a lot of empty legacy fields that are a remainder of ChirpStack v3 (that are used in the case of a v3 to v4 migration). If you use the Protobuf generated structs for decoding the Protobuf / JSON, you will have access to these default values (e.g. 0, "", false, ...).