pub unsafe extern "C" fn otThreadSetVendorModel(
aInstance: *mut otInstance,
aVendorModel: *const c_char,
) -> otError
Expand description
Set the vendor model string.
Requires OPENTHREAD_CONFIG_NET_DIAG_VENDOR_INFO_SET_API_ENABLE
.
@p aVendorModel should be UTF8 with max length of 32 chars (MAX_VENDOR_MODEL_TLV_LENGTH
). Maximum length does not
include the null \0
character.
@param[in] aInstance A pointer to an OpenThread instance. @param[in] aVendorModel The vendor model string.
@retval OT_ERROR_NONE Successfully set the vendor model. @retval OT_ERROR_INVALID_ARGS @p aVendorModel is not valid (too long or not UTF8).