|
openaliro
Aliro reader: UWB/CCC core and ESP32-S3/C5/C6 port
|
— the one seam the `aliro` console needs from the application. More...
Go to the source code of this file.
Functions | |
| void | aliro_shell_set_factory_reset (void(*fn)(void)) |
Supply the handler that aliro factoryreset yes invokes. | |
— the one seam the `aliro` console needs from the application.
| void aliro_shell_set_factory_reset | ( | void(*)(void) | fn | ) |
Supply the handler that aliro factoryreset yes invokes.
A factory reset is a Matter/CHIP operation, and CHIP is C++. This file's module is pure C and has no CHIP include paths, so the application registers the call instead of this layer reaching up for it. Pass NULL to unregister.
The handler is expected to erase provisioning and reboot; it may not return. Left unregistered (host tests, a build without the application) the command refuses with -ENOTSUP rather than pretending to have done anything.
| fn | Reset handler, or NULL. |