Preferences::begin()

名称

Preferences::begin()

説明

NVS(Non-volatile storage)の利用を開始する。

書式

#include <Preferences.h>

bool Preferences::begin(const char * name, bool readOnly = false, const char* partition_label=NULL);

引数

name 利用するネームスペース。15文字まで利用可能。
readOnly trueのときは、読み出し専用。falseのときは、読み書き。省略時はfalse。
partition_labelパーティションラベル。省略時はNULL。

戻り値

実行結果。成功した場合は、true。失敗した場合は、false。

使用例

バージョン

Hardware:ESP-WROOM-32
Software:Arduino core for the ESP32 2.0.4

最終更新日

September 4, 2022

inserted by FC2 system