6 Global APIs

API Syntax

Description

Input Params

Return Value

OCPPLoggingResetGlobals

Function to reset global variables for logging.

void

void

Example:

    OCPPConfigManagerResetGlobals();
    OCPPCleanUpGlobalProfiles();
    OCPPHeartbeatResetGlobals();
    OCPPLoggingResetGlobals();

API Syntax

Description

Input Params

Return Value

SetGlobalTotal Connectors

Sets the total number of connectors in a charge point.

uint8_t connectors

void

Example:

    OCPPMessagesInit();
    uint8_t totalConnectors = GetTotalConnectorsInChargePoint();
    SetGlobalTotalConnectors(totalConnectors);
    InitializeGlobalProfiles(GlobalGetTotalConnectors());

API Syntax

Description

Input Params

Return Value

OCPPCallbackFnResetGlobals

Resets global variables for callback.

void

void

  Example:

  OCPPProcessSmartChargingResetGlobal();
    OCPPProcessReserveResetGlobal();
    OCPPProcessCoreResetGlobals();
    OCPPCallBackFnResetGlobals();

API Syntax

Description

Input Params

Return Value

OCPPProcessSmartChargingResetGlobals

Resets global variables for SmartCharging.

void

void

Example:

void OCPPResetAllGlobals(void) 
{
    OCPPProcessSmartChargingResetGlobal();
    OCPPProcessReserveResetGlobal();
    OCPPProcessCoreResetGlobals();
    OCPPCallBackFnResetGlobals();
)

API Syntax

Description

Input Params

Return Value

OCPPProcessReserveResetGlobals

Resets global variables for Process Reserve.

void

void

  Example:

void OCPPResetAllGlobals(void) 
{
    OCPPProcessSmartChargingResetGlobal();
    OCPPProcessReserveResetGlobal();
    OCPPProcessCoreResetGlobals();
    OCPPCallBackFnResetGlobals();
)

API Syntax

Description

Input Params

Return Value

OCPPProcessCoreResetGlobals

Resets global variables for Process Core.

void

void

Example:

    OCPPProcessSmartChargingResetGlobal();
    OCPPProcessReserveResetGlobal();
    OCPPProcessCoreResetGlobals();