Skip to content

Add booleans for checking if user sets cert/key pair #78

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 1 commit into from
Oct 10, 2019

Conversation

brentru
Copy link
Member

@brentru brentru commented Oct 10, 2019

Instead of exposing setCert/setPSK in nina-fw as commands, I'm adding two booleans to esp32spi.py instead, set_psk/set_crt.

This is for checking if a user has set a certificate and/or psk prior to establishing a connection with a server.

@brentru brentru requested a review from a team October 10, 2019 13:42
Copy link
Contributor

@jerryneedell jerryneedell left a comment

Choose a reason for hiding this comment

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

I can't test this at this time, but the changes look good to me.

@brentru brentru merged commit 602250a into adafruit:master Oct 10, 2019
@jerryneedell
Copy link
Contributor

Just a thought -- Is there ever a situation where you would want to clear this setting?

@brentru
Copy link
Member Author

brentru commented Oct 10, 2019

@jerryneedell Possibly if wifi.connect with an incorrect cert/key pair and fails.

@jerryneedell
Copy link
Contributor

ah, but the user can just do that.
x.set_psk = False

adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Oct 10, 2019
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.

2 participants