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