# null

# DoIP\_ConfigureVehicleAnnouncement

[Valid for](../../../Shared/FeatureAvailability.md): CANoe DE

**Note**\
The following DoIP CAPL function is only available with the modeling library **DoIP.dll** and eventually an appropriate implementation of the CAPL Callback Interface. Information about the DoIP DLL and the CAPL Callback Interface you find here:

* [DoIP CAPL Introduction](../CAPLDiagnosticDoIP.md)
* [AN-IND-1-012\_CAPL\_Callback\_Interface.pdf](javascript:startDemoLoader\('AN-IND-1-012_CAPL_Callback_Interface.pdf'\))
* [AN-IND-1-026\_DoIP\_in\_CANoe.pdf](javascript:startDemoLoader\('AN-IND-1-026_DoIP_in_CANoe.pdf'\))

## Function Syntax

```plaintext
void DoIP_ConfigureVehicleAnnouncement(dword toInitial_ms, dword messageCount, dword toInterval_ms);
```

## Description

Configures when the Vehicle Announcement Messages are sent.

## Parameters

* **toInitial\_ms**\
  Initial timeout before sending the first announcement message after measurement start.

  **Note**\
  This parameter is ignored, if the function [DoIP\_AnnounceVehicle](CAPLfunctionDoIPAnnounceVehicle.md) is used for sending Vehicle Announcement Messages.

* **messageCount**\
  Number of announcement messages sent when the measurement starts, or [DoIP\_AnnounceVehicle](CAPLfunctionDoIPAnnounceVehicle.md) is called.

* **toInterval\_ms**\
  Time between the announcement messages when more than 1 is configured.

## Return Values

—

## Example

```plaintext
// Send 5 announcement messages after 200 ms, with 100 ms interval
DoIP_ConfigureVehicleAnnouncement( 200, 5, 100);
DoIP_AnnounceVehicle();
```

[DoIP\_GetAnnounceInterval](CAPLfunctionDoIPGetAnnounceInterval.md) • [DoIP\_GetAnnounceMessageCount](CAPLfunctionDoIPGetAnnounceMessageCount.md) • [DoIP\_GetAnnounceMessageCount](CAPLfunctionDoIPGetAnnounceWaitTime.md) • [DoIP\_AnnounceVehicle](CAPLfunctionDoIPAnnounceVehicle.md)
