> ## Documentation Index
> Fetch the complete documentation index at: https://notevil.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# CAPLfunctionOnSDProviderDiscovered

# on SD\_provider\_discovered (obsolete)

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

## Function Syntax

* `on SD_provider_discovered <Service>;` // form 1
* `on SD_provider_discovered <ServiceConsumer>;` // form 2

## Description

The event procedure is called when a new service provider is discovered.

## Parameters

* **`<Service>`**: Designates the service on which the event procedure shall react. In this case, the procedure is called for any simulated consumer that has discovered a new provider.
* **`<ServiceConsumer>`**: Designates the service consumer on which the event procedure shall react.

## Selectors

* **address**: (Generalized) address of the provider.

## Example

```plaintext theme={null}
on SD_provider_discovered Mirrors::MirrorAdjustment
{
  char buffer[100];
  Abstract_GetDisplayName(this.address, buffer);
  write("New provider: %s", buffer);
}
```

[Programming with the Communication Concept (C#, Python and CAPL)](../../../CANoeCANalyzer/CommunicationConcept/Programming/CCP.md) • [on SD\_consumer\_discovered](CAPLfunctionOnSDConsumerDiscovered.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.