|
@@ -713,6 +713,20 @@ uint8_t ocpp_get_remotestop(uint8_t gun_index)
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
+void ocpp_set_auth_conf(uint8_t status)
|
|
|
+{
|
|
|
+ if(ShmSysConfigAndInfo->SysInfo.OcppRunningVer == OCPP_RUNNING_VERSION_16)
|
|
|
+ {
|
|
|
+ if(ShmOCPP16Data->SpMsg.bits.AuthorizeConf != status)
|
|
|
+ ShmOCPP16Data->SpMsg.bits.AuthorizeConf = status;
|
|
|
+ }
|
|
|
+ else if(ShmSysConfigAndInfo->SysInfo.OcppRunningVer == OCPP_RUNNING_VERSION_20)
|
|
|
+ {
|
|
|
+ if(ShmOCPP20Data->SpMsg.bits.AuthorizeConf != status)
|
|
|
+ ShmOCPP20Data->SpMsg.bits.AuthorizeConf = status;
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
void ocpp_set_auth_req(uint8_t status, ...)
|
|
|
{
|
|
|
va_list args;
|
|
@@ -763,20 +777,6 @@ uint8_t ocpp_get_auth_req()
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
-void ocpp_set_auth_conf(uint8_t status)
|
|
|
-{
|
|
|
- if(ShmSysConfigAndInfo->SysInfo.OcppRunningVer == OCPP_RUNNING_VERSION_16)
|
|
|
- {
|
|
|
- if(ShmOCPP16Data->SpMsg.bits.AuthorizeConf != status)
|
|
|
- ShmOCPP16Data->SpMsg.bits.AuthorizeConf = status;
|
|
|
- }
|
|
|
- else if(ShmSysConfigAndInfo->SysInfo.OcppRunningVer == OCPP_RUNNING_VERSION_20)
|
|
|
- {
|
|
|
- if(ShmOCPP20Data->SpMsg.bits.AuthorizeConf != status)
|
|
|
- ShmOCPP20Data->SpMsg.bits.AuthorizeConf = status;
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
uint8_t ocpp_get_auth_conf()
|
|
|
{
|
|
|
uint8_t result = OFF;
|