> ## 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.

# CAPLfunctionOnSOMEIPEventGroupSubscribedConsumerSide

# on SOMEIP\_EventGroupSubscribedConsumerSide (obsolete)

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

## Function Syntax

`on SOMEIP_EventGroupSubscribedConsumerSide <EventGroup>;`

## Description

The event procedure is called at the consumer when an event group subscription has been accepted by the provider and SOME/IP binding is used.

## Parameters

* **`<EventGroup>`**: Designates the event group on which the event procedure shall react. This must be a consumer endpoint.

## Selectors

* **Selector**: provider
  * **Description**: Provider
  * **Type**: The type is serviceProviderRef\*
  * **Access Limitation**: Read only

* **Selector**: Status
  * **Description**: Int, 1 means connected, 2 means not connected.
  * **Type**: Uint32
  * **Access Limitation**: Read only

## Example

```plaintext theme={null}
on SOMEIP_EventGroupSubscribedConsumerSide `<EventGroup>`
{
  if (this.Status == 1) // Positive Acknowledgement
  {
    ...
  }
  else if (this.Status == 0) // Negative Acknowledgement
  {
    write("%s", this.provider.Name);
  }
}
```

[on SOMEIP\_EventGroupSubscribed](CAPLfunctionOnSOMEIPEventGroupSubscribed.md)


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