I’m using chirpstack 3.x
My application generates downlink packets when it receives uplinks. It does not queue them ahead of time. Is there a way to determine the number of bytes available in the downlink once you have the uplink?
I know you can get a rough idea based on the uplink data rate, the rx1_dr_offset and the regional parameters, but I haven’t found a way to get the rx1_dr_offset programmatically. Is there a way to do this? I’m currently hardcoding this, but that’s not ideal.
Additionally, as I understand it, MAC fOpts payload data may be bundled with the downlink and reduce the number of bytes available for the downlink message. Is this correct? Is there a way to determine how many bytes are going to be used for fOpts?
Thanks
-Andrew