Configure receiving windows

How do I configure the receiving windows from the code

Is lora fetching the receiving windows from redis?