Skip to content

espnow.Peer: fix argument types and default values #7797

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

Merged
merged 3 commits into from
Mar 28, 2023

Conversation

Neradoc
Copy link

@Neradoc Neradoc commented Mar 27, 2023

This fixes the int and bool arguments checks to espnow.Peer().
I also made the optional arguments kwarg-only, if that's ok ? I don't know if that fits the intended API.

Also, maybe we should make the encrypt argument and encrypted property use the same name ?

@dhalbert
Copy link
Collaborator

Also, maybe we should make the encrypt argument and encrypted property use the same name ?

I agree with making them consistent.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe make both encrypted, since .encrypted is clearer as a "state" anem.

@Neradoc
Copy link
Author

Neradoc commented Mar 28, 2023

That makes sense to me. Done.

Copy link
Collaborator

@microdev1 microdev1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks, @Neradoc.

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! Merging.

@dhalbert dhalbert merged commit 31f46f2 into adafruit:main Mar 28, 2023
@Neradoc Neradoc deleted the espnow-peer-arguments branch December 26, 2024 03:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants