2.2.4 OCPPResetAllGlobals()
OCPPResetAllGlobals() is a function that cleans up all the global variables, settings and configurations related to an OCPP stack within an EV charging station or central system. It ensures the clearing of the global state, such as communication parameters, authentication data, cached information or session variables.
When invoked, OCPPResetAllGlobals() performs the following actions:
- Resets internal data structures and clears any cached messages or responses.
- Releases any active connections.
It then reinitializes to default settings ensuring a clean system, free of any residual data from previous operations. This process is useful for restarting, reestablishing connections or upgrading configurations.
