-
-
Notifications
You must be signed in to change notification settings - Fork 389
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement REST Endpoint for Start and Stop Transaction #388
Comments
You may want to checkout my approach https://github.com/redhell/steve/tree/REST_Branch |
Hi, First of all many thanks @redhell Do you have any idea what can be causing this issue? Once again thanks |
@Safari94 Maybe it is related to the connector outlet. I assume you want to start a charging session on charger with multiple outlets. To fix the problem the you have to get the outlet number (1/2/3) and pass it to the /startSession/ |
Hi @redhell, In the startSession I changed the code and I am passing the connectorID as a requestParam. The problem is when I am trying to stop session, I am able to close one of them but when trying to close the other one I get 409 conflit. I review your code and in the stopSession there isn't any reference to the connector ID. As far as I understood, you are checking for that charge box how many transactions are active and by using the occp tag you close the one that belongs to that ocpp tag, right? Do you have any idea about what can be the problem? Thanks. |
@Safari94 As far as I can remember the remoteStoptransaction stops the last active transaction. In OCPP you cannot send the connectorID via a remoteStopTransaction. An approach for you: When starting a charging session store the transaction ID with the chargebox id + outlet. |
Hi @redhell, I'm getting following in Steve's log whenever I try to remotely start transactions: |
@Shivraj-Patil Hi, were you able to solve it? I have the same problem |
It was only implemented for OCPP 1.6 Endpoints |
@redhell have you any idea how to configure the SecurityConfiguration (\src\main\java\de\rwth\idsg\steve\config\SecurityConfiguration) if you would like to authorize the the REST endpoint too? I have made something similar like you with a REST-controller but have not been able to figure out how to configure the authorization if I would like to authorize the admin user that we set in the main.properties file. Do you have any idea? |
Is the code been updated and upgraded to support multiple chargers ? Can we have the readme to support the steps |
hi @rahulbhat13 There you have the code that i am using to activate multiple connectors in the same station ` @GetMapping(value = sCHARGEBOXID + "/startSession/{idTag}")
|
Related to #910 |
closing this since we have the meta ticket. |
cloned your code but getting this erorr: |
Hi,
I am trying to implement two REST endpoints for start and stop a charging transaction.
Based on the code already done, I am using the class
ChargePointService12_Client
for doing so.Basically I am only getting JSON on the body and convert it to both
RemoteStartTransactionParams
andRemoteStopTransactionParams
But, once I try to pass command and run it, I am having the following error.
My code:
`
@RestController
@RequestMapping("/api")
public class APIConnector {
}
`
Can anyone help me?
Thanks in advance
The text was updated successfully, but these errors were encountered: