This repository was archived by the owner on Sep 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 218
NVS as config store #127
Closed
Closed
NVS as config store #127
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Only link led driver when the driver is enabled through the device config
Dev ussl nonblocking
Added listing, dumping and loading of fonts
The CC3100 only allows to set a timeout for receiving data, not for accept, connect or send. But it can set non-blocking for all these operations and this patch uses that feature to implement socket timeout in terms of non- blocking behaviour combined with a loop.
This attempts to bootstrap network tests for MicroPython. This commits sets test/net_inet/ as place for tests which require access to wide Internet. They aren't intended to be run as part of the main testsuite, instead to be run manually on demand. test_tls_sites.py in particular check that it's possible to establish SSL/TLS connection to select sites on the Internet: few references ones, plus those for which problems were reported, and resolved.
Some of these tests don't require an Internet connection, but here is a good place to put them for now.
Support dialog.prompt_text with on-screen keyboard
`n_args` doesn't count keyword (named) parameters, and it's possible to pass in only some of those, so we need something else than `n_args > x` to check whether a given keyword parameter is present. `MP_OBJ_IS_TYPE(MP_OBJ_NULL, &whatever)` will crash, but `MP_OBJ_IS_TYPE(mp_const_none, &whatever)` will always return 'false', so the latter is a more suitable default for non-required keyword parameters. See also caaf6ab
…meters Correctly detect presence of keyword parameters
Support capitals in prompt_text (fixes #47)
And use it to accept 'OK' via the keyboard
Preliminary support for callbacks for buttons
Author
|
Sorry :( once again clicked on the wrong tree!! |
|
what happened to this ? any updates on using NVS from micropython on esp32 ? |
Contributor
|
@Silps I don't think there's a lot of interest, NVS is simply a partition type for the flash. Since you have a file system available in MP, why not just write a JSON config there? |
|
@MrSurly 👍 was just looking for the shortest effort in terms of writing code : ) |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Depends on SHA2017-badge/Firmware#90