Unverified Commit 8ebf7581 authored by Jacques Supcik's avatar Jacques Supcik Committed by GitHub

fix return value of getBytes (#7981)

parent bad5af9e
......@@ -578,7 +578,7 @@ Copy a series of bytes stored against a given key in the currently open namespac
- the number of bytes to be written to the buffer pointed to by ``buf``
**Returns**
* if successful, the number of bytes equal to ``len`` is written to buffer ``buf``, and the method returns ``1``.
* if successful, the number of bytes equal to ``len`` is written to buffer ``buf``, and the method returns ``len``.
* if the method fails, nothing is written to the buffer and the method returns ``0``.
**Notes**
......@@ -698,4 +698,4 @@ Get the number of free entries available in the key table of the currently open
* A message providing the reason for a failed call is sent to the arduino-esp32 ``log_e`` facility.
.. --- EOF ----
\ No newline at end of file
.. --- EOF ----
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