代码拉取完成,页面将自动刷新
#ifndef __OCPP_PROCESS_H
#define __OCPP_PROCESS_H
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <stdbool.h>
#include "ocpp_ws_client.h"
#include "ocpp_helper.h"
#include "cJSON.h"
#include "main.h"
//OCPP Machine States, as per defined in the documentation
typedef enum{
Authorize,
BootNotification,
CancelReservation,
ChangeAvailability,
ChangeConfiguration,
ClearCache,
ClearChargingProfile,
DataTransfer,
DiagnosticsStatusNotification,
FirmwareStatusNotification,
GetConfiguration,
GetDiagnostics,
GetLocalListVersion,
Heartbeat,
MeterValues,
RemoteStartTransaction,
RemoteStopTransaction,
GetCompositeSchedule,
ReserveNow,
Reset,
StartTransaction,
StatusNotification,
StopTransaction,
SendLocalList,
SetChargingProfile,
TriggerMessage,
UnlockConnector,
UpdateFirmware
}OCPP_States;
//HeartBeat Interval used for pinging to CMS for mainting the connection
uint64_t heartBeatInterval;
//If the CP is rejected or state becomes pending, it is the interval when it will again retry
uint64_t retryInterval;
//OCPP Process starting point
void ocpp_process_start();
int onclose(wsclient *c); // This function is called when close event occurs in websocket connection
int onerror(wsclient *c, wsclient_error *err); // This function is called when error event occurs in websocket connection
int onmessage(wsclient *c, wsclient_message *msg); // This function is called when message event occurs in websocket connection
int onopen(wsclient *c); // This function is called webSocket is just open
#endif
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。