i2c_cmd_link_create_static() is only used within ESP-IDF.
 
Symbols
loading (4/5)...
Files
loading (4/5)...
SummarySyntaxArgumentsReferencesCall TreeData Use

Return value

Handle to the I2C command link or NULL if the buffer provided is too small, please use `I2C_LINK_RECOMMENDED_SIZE` macro to get the recommended size for the buffer.

Notes

It is **highly** advised to not allocate this buffer on the stack. The size of the data used underneath may increase in the future, resulting in a possible stack overflow as the macro `I2C_LINK_RECOMMENDED_SIZE` would also return a bigger value. A better option is to use a buffer allocated statically or dynamically (with `malloc`).

References