-
Notifications
You must be signed in to change notification settings - Fork 164
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
[Request] make level
parameter to multicast() optional
#183
Comments
Sounds good to me
… On Jul 28, 2021, at 5:12 PM, Brendan ***@***.***> wrote:
I had the thought to do this in when porting this lib to pure python. If the level parameter is not specified, then we can let the multicast() function automatically use the private member multicast_level (set by setup_address() or multicastLevel()) as a default value. This should be helpful because the user has no way of getting the current multicast level in the public API (or maybe I missed something).
It's my understanding that the multicastLevel() sets the network level in which the node is listening for multicasted messages. Making the level parameter optional, will relieve the user of having to keep passing the new multicast level to the multicast() function.
ps - I'll be conditionally adding the multicastLevel(), multicast(), and multicastRelay to the python wrapper for completeness. Additionally, I'm also adding some other missing attributes like networkFlags & routeTimeout (I've already added the missing begin(uint16_t) method).
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
I've decided to fill out the missing docs for private members while everything is still fresh in my head... In the docs about
Is this a typo? I thought there could only be 4 network levels (0-3) judging from the behavior of |
This solution is testing well. any objections to letting >>>network.multicastLevel()
0
>>>network.multicastLevel(1)
1 This would at least allow mesh users to adjust it programmatically (assuming |
I think that must be a typo but there should be 5 multicast levels, 0-4. Nodes n111-n555 make up level 4
… On Jul 29, 2021, at 4:42 AM, Brendan ***@***.***> wrote:
This solution is testing well.
any objections to letting multicastLevel() return the current configured multicast level.
say like so
>>>network.multicastLevel()
0
>>>network.multicastLevel(1)
1
This would at least allow mesh users to adjust it programmatically.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Thanks for the clarification. That was the last point of confusion for me. I'll fix the typo and leave the |
I had the thought to do this in when porting this lib to pure python. If the
level
parameter is not specified (using the default value 7 or anything greater than 3), then we can let themulticast()
function automatically use the private membermulticast_level
(set bysetup_address()
ormulticastLevel()
) as a default value. This should be helpful because the user has no way of getting the current multicast level in the public API (or maybe I missed something).It's my understanding that the
multicastLevel()
sets the network level in which the node is listening for multicasted messages. Making thelevel
parameter optional will relieve the user of having to keep passing the new multicast level to themulticast()
function.ps - I'll be conditionally adding the
multicastLevel()
,multicast()
, andmulticastRelay
to the python wrapper for completeness. Additionally, I'm also adding some other missing attributes likenetworkFlags
&routeTimeout
. I've already added the missingbegin(uint16_t)
method. However, exposing theframe_buffer
member will have to wait for nRF24/pyRF24#3.The text was updated successfully, but these errors were encountered: