startSessionProcess

suspend fun startSessionProcess(locationId: String, evseId: String): SessionCommandFlow

Initiates an EV charging session for the charging location. The return of a session ID does not necessarily indicate a session has been created. It's important to look at the CommandResponseType in the returned SessionCommandResponse in order to understand if a session was created successfully.

Return

either a SessionCommandFlow which includes a resultFlow that should be collected. The remote service will be periodically polled to get updated results related to creating a session. When you are done collecting the flow results you must call close() on the SessionCommandFlow in order to stop the polling.

Parameters

locationId

the location ID of the EV charging location

evseId

the port ID of the individual EVSE