# null

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

[CAPL Functions](../../CAPLfunctions.md) » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [SCC Modeling Libraries (Simulation Setup)](../CAPLFunctionsSmartChargingOverview.md#BMNodeayerDLL) » [EV Callback Functions](../CAPLFunctionsSmartChargingOverview.md#CallbackEV) » SCC\_ServiceDiscoveryRes

# SCC\_ServiceDiscoveryRes

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

**Note**\
The element **ChargeService**, which is not part of the service list, is contained in the ServiceCount and referenced using index 0.

## Function Syntax

```plaintext
void SCC_ServiceDiscoveryRes ( byte SessionID[], long ResponseCode, long ServiceCount )
```

## Description

The callback is called as soon as a Service Discovery Response is received.

Further details that are transmitted in this request can be queried with the following functions:

* [SCC\_GetServiceData](../Functions/CAPLfunctionSCCGetServiceData.md)
* [SCC\_GetPaymentOptions](../Functions/CAPLfunctionSCCGetPaymentOptions.md)
* [SCC\_GetEnergyTransferType](../Functions/CAPLfunctionSCCGetEnergyTransferType.md) (DIN 70121)
* [SCC\_GetEnergyTransferMode Count](../Functions/CAPLfunctionSCCGetEnergyTransferModeCount.md) (ISO 15118)
* [SCC\_GetEnergyTransferMode](../Functions/CAPLfunctionSCCGetEnergyTransferMode.md) (ISO 15118)
* [SCC\_GetResponseCodeString](../Functions/CAPLfunctionSCCGetResponseCodeString.md)

## Parameters

* **SessionID**: 8-byte long SessionID of SCC connection, range: 0 – 0xFF FF FF FF FF FF FF FF.
* **ResponseCode**: 1 if **OK**, 0 if **FAILED**.
* **ServiceCount**: Number of ServiceTags or Services transmitted.

## Return Values

—

## Example

—
