forked from lorenzodonini/ocpp-go
/
iso15118_handler.go
22 lines (18 loc) · 1.08 KB
/
iso15118_handler.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package main
import (
"github.com/lorenzodonini/ocpp-go/ocpp"
"github.com/lorenzodonini/ocpp-go/ocpp2.0.1/iso15118"
"github.com/lorenzodonini/ocpp-go/ocppj"
)
func (handler *ChargingStationHandler) OnDeleteCertificate(request *iso15118.DeleteCertificateRequest) (response *iso15118.DeleteCertificateResponse, err error) {
logDefault(request.GetFeatureName()).Warnf("Unsupported feature")
return nil, ocpp.NewHandlerError(ocppj.NotSupported, "Not supported")
}
func (handler *ChargingStationHandler) OnGetInstalledCertificateIds(request *iso15118.GetInstalledCertificateIdsRequest) (response *iso15118.GetInstalledCertificateIdsResponse, err error) {
logDefault(request.GetFeatureName()).Warnf("Unsupported feature")
return nil, ocpp.NewHandlerError(ocppj.NotSupported, "Not supported")
}
func (handler *ChargingStationHandler) OnInstallCertificate(request *iso15118.InstallCertificateRequest) (response *iso15118.InstallCertificateResponse, err error) {
logDefault(request.GetFeatureName()).Warnf("Unsupported feature")
return nil, ocpp.NewHandlerError(ocppj.NotSupported, "Not supported")
}