Hello
i play around with rx_metadata and sometimes my code puts out an error Message. When channel_index = 0, there is no channel_index parameter in the JSON object.
channel_index 0 = 868.1Mhz // but not shown
channel_index 1 = 868.3Mhz
channel_index 2 = 868.5Mhz
…
when i am right.
Channel index has no consistent meaning outside the configuration of a particular gateway. Since it’s meaningless it may be some gateways don’t report it.
You should ignore it and use the frequency given (perhaps once for the report as a whole?) instead.
Any null, zero or blank value is not included in the JSON payload courtesy of the Google Protocol Buffers to JSON convertor in use with no plans to resolve it.