Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need method to get expected payload length from Reg 0x22 in SX1276 modem while in LoRa implicit header mode #1344

Closed
snowrodeo opened this issue Dec 11, 2024 · 3 comments
Labels
enhancement New feature or request wontfix This will not be worked on

Comments

@snowrodeo
Copy link

There are two(?) ways to set the payload length in implicit header mode
setImplicit(length) and setReceived(timeout, flags, flags, length)

However there is no way to explicitly report on this length without using a SPI read from the register in God mode.

Request that a getImplicit method is added to return the number of payload bytes while in implicit more or 0 if not in implicit header mode

@jgromes
Copy link
Owner

jgromes commented Dec 14, 2024

The same argument can be applied to any parameter that is being configured - that would be a very large amount of new methods to be added. There is currently an open issue for that (#622), though to be honest, I'm not sure that this is the right way forward.

Is there a specific scenario in which you would need to retrieve this value except for checking the radio settings when debugging?

@jgromes jgromes added the enhancement New feature or request label Dec 14, 2024
@snowrodeo
Copy link
Author

snowrodeo commented Dec 15, 2024 via email

@jgromes
Copy link
Owner

jgromes commented Dec 15, 2024

It just opens a can of worms that I don't yet know how to resolve. Since this is only for debugging, we will stick with only having this accessible via godmode for now. Also #1345 has been resolved properly.

@jgromes jgromes closed this as not planned Won't fix, can't repro, duplicate, stale Dec 15, 2024
@jgromes jgromes added the wontfix This will not be worked on label Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants