ei_sleep()is declared internally in the Edge Impulse SDK library, and the function must be defined by the user.
time_ms- [input] Number of milliseconds the processor or current thread should sleep for.
EI_IMPULSE_ERRORenum. Will be
EI_IMPULSE_OKif the function completed successfully.
__attribute__((weak))in most of the definitions, which means that a user could override the implementation elsewhere in the program: