You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/storage/nvs/nvs_rw_blob/README.md
+24-31Lines changed: 24 additions & 31 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Example also shows how to implement diagnostics if read / write operation was su
14
14
15
15
Detailed functional description of NVS and API is provided in [documentation](https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/storage/nvs_flash.html).
16
16
17
-
If not done already, consider checking simpler example *storage/nvs_rw_value*, that has been used as a starting point for preparing this one.
17
+
If not done already, consider checking simpler example *storage/nvs/nvs_rw_value*, that has been used as a starting point for preparing this one.
18
18
19
19
## How to use example
20
20
@@ -36,34 +36,27 @@ See the Getting Started Guide for full steps to configure and use ESP-IDF to bui
36
36
37
37
## Example Output
38
38
39
-
First run:
40
39
```
41
-
Restart counter = 0
42
-
Run time:
43
-
Nothing saved yet!
44
-
```
45
-
46
-
At this point, press "Boot" button and hold it for a second. The board will perform software restart, printing:
47
-
48
-
```
49
-
Restarting...
50
-
```
51
-
52
-
After booting again, restart counter and run time array will be printed:
53
-
54
-
```
55
-
Restart counter = 1
56
-
Run time:
57
-
1: 5110
58
-
```
59
-
60
-
After pressing "Boot" once more:
61
-
62
-
```
63
-
Restart counter = 2
64
-
Run time:
65
-
1: 5110
66
-
2: 5860
67
-
```
68
-
69
-
To reset the counter and run time array, erase the contents of flash memory using `idf.py erase-flash`, then upload the program again as described above.
40
+
...
41
+
I (288) main_task: Calling app_main()
42
+
I (298) nvs_blob_example: Saving test data blob...
43
+
I (308) nvs_blob_example:
44
+
Reading updated blob data:
45
+
I (308) nvs_blob_example: Reading test data blob:
46
+
I (308) nvs_blob_example: ID: 123
47
+
I (308) nvs_blob_example: Name: Test Sample
48
+
I (308) nvs_blob_example: Values: 3.140, 2.718, -0.000, 0.000
49
+
I (318) nvs_blob_example: Flags: 0xABCD1234
50
+
I (318) nvs_blob_example: Counts: -100, 100
51
+
I (328) nvs_blob_example: Active: true
52
+
I (328) nvs_blob_example:
53
+
Reading array data blob:
54
+
I (338) nvs_blob_example: Array[0] = 30
55
+
I (338) nvs_blob_example: Array[1] = 20
56
+
I (338) nvs_blob_example:
57
+
Blob operations completed. Monitoring GPIO for reset...
0 commit comments