Unverified Commit 7c344cc8 authored by Vincent's avatar Vincent Committed by GitHub

Added isKey documentation for the Preferences library (#9142)

* Added isKey and getType methods to the documentation (#9111)

* Removed duplicated getType documentation.
parent 5bf60b74
...@@ -179,6 +179,27 @@ Arduino-esp32 Preferences API ...@@ -179,6 +179,27 @@ Arduino-esp32 Preferences API
* A message providing the reason for a failed call is sent to the arduino-esp32 ``log_e`` facility. * A message providing the reason for a failed call is sent to the arduino-esp32 ``log_e`` facility.
``isKey``
*************
Check if a key-value pair from the currently open namespace exists.
.. code-block:: arduino
bool isKey(const char * key)
..
**Parameters**
* ``key`` (Required)
- the name of the key to be checked.
**Returns**
* ``true`` if key-value pair exists; ``false`` otherwise.
**Note**
* Attempting to check a key without a namespace being open will return false.
``putChar, putUChar`` ``putChar, putUChar``
********************** **********************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment