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

# CAPLfunctionOnLastReceivedMessageIdChanged

# OnLastReceivedMessageIdChanged

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

**CAPL Functions** » [Smart Charging](../CAPLFunctionsSmartChargingOverview.md) » [OCPP](../CAPLFunctionsSmartChargingOverview.md#BMOCPP) » [Callback Functions](../CAPLFunctionsSmartChargingOverview.md#BMOCPPCallbackFunctions) » OnLastReceivedMessageIdChanged

**Valid for**: CANoe DE • CANoe4SW DE

## Function Syntax

```plaintext theme={null}
void OnLastReceivedMessageIdChanged ( LastRxMessageIdType LastRxMessageId )
```

## Description

This callback is called as soon as a message is received.

## Parameters

* **LastRxMessageId**: ID of the last message received. See [MessageIDs](../Callbacks/SCC_MessageID.md) for more information.

## Return Values

—

## Example

—
