4.8 SecurityEventNotification

The SecurityEventNotification message is used by the charge point to notify the central system about security-related events, such as unauthorized access attempts or other security breaches.

API Syntax

Description

Input Params

Return Value

SetSecurityEventNotificationType

This function configures the security event notification type based on the provided event type.

uint32_t eventType

void

Example:

    else if ((CERT_SIGN_UPDATE_STATE_T)responsecode == CERTIFICATE_SIGNED_INVALID)
    {
      LogDebug("APP_LOG", "Certificate validation failed. Sending response.\n\r");
      (void)SetSecurityEventNotificationType(INVALID_CHARGE_POINT_CERTIFICATE);
      (void)SendSecurityEventNotificationRequest();
      SendCertificateSignedResponse(messageID);
    }

API Syntax

Description

Input Params

Return Value

SendSecurityEventNotificationRequest

This function sends a security event notification request, specifying the type of security event.

void

SECURITYEVENTNOTIFICATION_T

Example:

    else if ((CERT_SIGN_UPDATE_STATE_T)responsecode == CERTIFICATE_SIGNED_INVALID)
    {
      LogDebug("APP_LOG", "Certificate validation failed. Sending response.\n\r");
      (void)SetSecurityEventNotificationType(INVALID_CHARGE_POINT_CERTIFICATE);
      (void)SendSecurityEventNotificationRequest();
      SendCertificateSignedResponse(messageID);
    }