feat(storage/vfs): update docs to new version of API

This commit is contained in:
Tomáš Rohlínek
2024-10-31 13:25:36 +01:00
parent 6b07039281
commit e5ab487e3c
2 changed files with 63 additions and 43 deletions

View File

@@ -137,7 +137,7 @@ To send application output to a custom channel (for example, a WebSocket connect
- ``fstat()`` — recommended, to provide correct buffering behavior for the I/O streams
- ``fcntl()`` — only if non-blocking I/O has to be supported
Once you have created a custom VFS driver, use ``esp_vfs_register()`` to register it with VFS. Then, use ``fopen()`` to redirect ``stdout`` and ``stderr`` to the custom channel. For example:
Once you have created a custom VFS driver, use :cpp:func:`esp_vfs_register_fs()` to register it with VFS. Then, use ``fopen()`` to redirect ``stdout`` and ``stderr`` to the custom channel. For example:
.. code-block:: c