/** * Initiate a remote stop of the given charging session at the given EVSE. * * @param Timestamp The timestamp of the request. * @param RoamingNetworkId The unique identification for the roaming network. * @param SessionId The unique identification for this charging session. * @param PartnerSessionId The unique identification for this charging session on the partner side. * @param ProviderId The unique identification of the e-mobility service provider. * @param EVSEId The unique identification of an EVSE. * @return A remote stop result object. */publicRemoteStopResultInvoke(InstantTimestamp,RoamingNetwork_IdRoamingNetworkId,ChargingSession_IdSessionId,ChargingSession_IdPartnerSessionId,EVSP_IdProviderId,EVSE_IdEVSEId);/** * Register an event callback for incoming remote stop requests. * * @param RemoteStopHandler an implementation of the remote stop functional interface. */publicvoidOnRemoteStop(IRemoteStopRemoteStopHandler){...}
CPOServerHubjectCPOServer=newCPOServer(RoamingNetwork_Id.Parse("Playground"));HubjectCPOServer.OnRemoteStop((Timestamp,RoamingNetworkId,SessionId,PartnerSessionId,ProviderId,EVSEId)->{System.out.println("["+Timestamp.toString()+"] RemoteStop in '"+RoamingNetworkId.toString()+"' from '"+ProviderId.toString()+"' at '"+EVSEId.toString()+"'");returnRemoteStopResult.Success;});
Comments (0)
HTTPSSSH
You can clone a snippet to your computer for local editing.
Learn more.