Skip to main content

Documentation Index

Fetch the complete documentation index at: https://notevil.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

OnAREthSDClientEventGroupStatusChanged

Valid for: CANoe DE • CANoe4SW DE

Function Syntax

void OnAREthSDClientEventGroupStatusChanged( dword serviceId, dword instanceId, dword eventGroupId, long status );

Description

This callback function can be implemented in the CAPL program if an Event Consumer (Client) wants to be notified of status changes to Event Groups. The function is called whenever the status of an Event Group changes. The callback function can only be called for status changes related to an Event Group that is consumed by this node.

Parameters

  • serviceId: ID of the service whose status has changed.
  • instanceId: Instance ID
  • eventGroupId: ID of the Event Group
  • status:
    • 0: not subscribed
    • 1: subscribed

Return Values

Example

void OnAREthSDClientEventGroupStatusChanged( dword serviceId, dword instanceId, dword eventGroupId, long status)
{
  char buffer[100];
  if(status == 0)
  {
    snprintf(buffer,elcount(buffer),"not subscribed");
  }
  else if(status == 1)
  {
    snprintf(buffer,elcount(buffer),"subscribed");
  }
  else
  {
    snprintf(buffer,elcount(buffer),"Undefined status");
  }
  write("Event group (ID %d), of service %d (instance %d): %s",eventGroupId,serviceId,instanceId,buffer);
}
See Also
- OnAREthEventReceived
- OnAREthFieldNotification
- OnAREthMethodError
- OnAREthMethodRequest
- OnAREthMethodResponse
- OnAREthPrepareEvent
- OnAREthClientAepConnected
- OnAREthClosedIPv6TCPConnection, OnAREthClosedIPv4TCPConnection, OnAREthClosedTCPConnection
- OnAREthClosedTLSConnection
- OnAREthEstablishedIPv6TCPConnection, OnAREthEstablishedIPv4TCPConnection, OnAREthEstablishedTCPConnection
- OnAREthEstablishedTLSConnection
- OnAREthMessage
- OnAREthNewServerAep
- OnAREthProcessRxMessage
- OnAREthProcessTxARPDU
- OnAREthProcessTxMessage
- OnAREthSDClientEventGroupStatusChanged
- OnAREthSDClientServiceStatusChanged
- OnAREthSDServerEventGroupStatusChanged
- OnAREthSDServerEventGroupStatusChangedIPv6