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