CAPL Script

SOMEIPSubscribeEventGroup

Syntax

long SOMEIP_SubscribeEventGroup(consumedEventGroupRef * eventGroup)

long SOMEIP_SubscribeEventGroup(consumedServiceRef * service, char[] eventGroupName)

Function

Subscribes for a service event group if SOME/IP binding is used. Note that this is morelow-level; usually its more convenient to callconsumedEventGroupRef::SOMEIPRequestEventGroupon the event group.

Parameters

eventGroup Event group which shall be subscribed.

service

Service which contains the event group.

eventGroupName

Name of the event group.

Return Values

0: Success

1: Service object is not initialized

2: Communication object does not use SOME/IP binding

3: Event group not found

< 0: Other error, e.g. event variable is not initialized

SOMEIP_SubscribeEventGroup(MirrorAdjustment.consumerSide[0,0].AllEvents);

Abstract_SubscribeEvent | SOMEIP_UnsubscribeEventGroup