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

# CAPLfunctionSCCCreateServiceDiscoveryReqDin

[Open topic with navigation](../../../../../CANoeDEFamily.htm#Topics/CAPLFunctions/SmartCharging/Functions/CAPLfunctionSCCCreateServiceDiscoveryReqDin.md)

## SCC\_CreateServiceDiscoveryReq\_DIN

[CAPL Functions](../../CAPLfunctions.md) » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [V2G Test Functions](../CAPLFunctionsSmartChargingOverview.md#V2GTestDIN) » [Shared Functions](../CAPLFunctionsSmartChargingOverview.md#V2GTestDIN) » SCC\_CreateServiceDiscoveryReq\_DIN

### Valid for:

CANoe DE • CANoe4SW DE

### Function Syntax

```plaintext theme={null}
long SCC_CreateServiceDiscoveryReq_DIN ( byte SessionID[] )
```

### Description

Creates a Service Discovery Request message for sending.

### Parameters

* **SessionID**: 8-byte long SessionID of SCC connection, range: 0 - 0xFF FF FF FF FF FF FF FF.

#### Optional Parameters

* **Index**: 0
  * **Name**: ServiceScope
  * **Type**: char\[]
  * **Description**: Scope of requested service.

* **Index**: 1
  * **Name**: ServiceType
  * **Type**: char\[]
  * **Description**: Type of requested service.

### Return Values

* **1**: If successful.
* **0**: Else (message cannot be sent).

### Example

—
