2.1.4 OCPPMessagesInit()
The OCPP stack initializes the message handling system through the OCPPMessagesInit() function. This function sets up the necessary structures and elements to manage various types of OCPP messages exchanged between the charging station, the central system and other entities.
The OCPPMessagesInit() function prepares the system to handle OCPP messages, which include commands like "BootNotification", "Authorize", "StartTransaction", "StopTransaction" and "Heartbeat". This involves queuing messages, setting message formats, and initializing transport layers using WebSockets, HTTP(S) or similar mechanisms.
