diff --git a/docs/assets/img/product_pics/base/btc_01.webp b/docs/assets/img/product_pics/base/module_btc_01.webp similarity index 100% rename from docs/assets/img/product_pics/base/btc_01.webp rename to docs/assets/img/product_pics/base/module_btc_01.webp diff --git a/docs/en/uiflow/advanced.md b/docs/en/uiflow/advanced.md index 313b3619..1fc28c71 100644 --- a/docs/en/uiflow/advanced.md +++ b/docs/en/uiflow/advanced.md @@ -668,3 +668,27 @@ Return request data >Send a GET request to Baidu, return data and print > + +# EEPROM + +#### Function Description + +>Save the important data in the form of key-value pairs to the NVS partition to prevent data loss after shutdown (to prevent program processing from being blocked, the data is actually written in 5 seconds later), please do not write the data to the NVS partition repeatedly, otherwise it will affect the flash life and cause damage + +> + +* __EEPROM write key value__ +Create a key-value pair to save data to EEPROM. + +* __EEPROM read key__ +Read out the data content corresponding to the keyword. + +* __EEPROM read key to int__ +Read out the data content corresponding to the keyword and convert Str to the Int. + +#### Instructions + +>Create key-value to write to NVS partition and read data. + +> + diff --git a/docs/image/Advanced module/EEPROM.webp b/docs/image/Advanced module/EEPROM.webp new file mode 100644 index 00000000..2f277127 Binary files /dev/null and b/docs/image/Advanced module/EEPROM.webp differ diff --git a/docs/image/Advanced module/EEPROM_user.webp b/docs/image/Advanced module/EEPROM_user.webp new file mode 100644 index 00000000..f40e747b Binary files /dev/null and b/docs/image/Advanced module/EEPROM_user.webp differ diff --git a/docs/zh_CN/uiflow/advanced.md b/docs/zh_CN/uiflow/advanced.md index 52533bff..d14a6cbc 100644 --- a/docs/zh_CN/uiflow/advanced.md +++ b/docs/zh_CN/uiflow/advanced.md @@ -26,6 +26,8 @@ **[Http](#Http)** +**[EEPROM](#EEPROM)** + # 远程控制 #### 功能说明 @@ -697,7 +699,6 @@ wifi重新连接 > - # Http #### 功能说明 @@ -722,3 +723,25 @@ wifi重新连接 > +# EEPROM + +#### 功能说明 + +>将重要数据以键值对的形式保存至NVS分区,防止关机后数据丢失(为防止程序处理被阻塞,5秒后数据被真正写入),请不要将数据随意反复写入NVS分区,否则将影响Flash寿命导致损坏。 + +> + +* __EEPROM write key value__ +创建一个键值对将数据保存到EEPROM中 + +* __EEPROM read key__ +读出关键字对应的数据内容 + +* __EEPROM read key to int__ +读出关键字对应的数据内容并转为整形数据 + +#### 使用说明 + +>创建键值对写入到NVS分区,并读取数据 + +> \ No newline at end of file