OpenChargingCloud / WWCP_OCPP

Connectivity between the World Wide Charging Protocol (WWCP) and the Open Charge Point Protocol (OCPP v1.6/v2.0.1/v2.1).
Apache License 2.0
49 stars 21 forks source link

sample code for server connection and sending information to the charging station #8

Open DgnOnur opened 9 months ago

DgnOnur commented 9 months ago

Problems with the dll package have been resolved.

I would like sample code on the following topics.

  1. How should I start the server application?
  2. How can I send start and stop charging requests to the charging station?

I would appreciate it if you could provide information with small examples.

DgnOnur commented 9 months ago

I would like your help on this issue.

Can you share a small sample code on how I can use the web socket subfolder information, bootnotification information, start and end charging operations?

ahzf commented 9 months ago

Well, what do you need exactly? Because there is for every OCPP version a unit test project which tests at least every OCPP message once, e.g. https://github.com/OpenChargingCloud/WWCP_OCPP/blob/da62b44ddef822eea66ccdf849d9f877e6498227/WWCP_OCPPv2.1_Tests/ChargingStation/MessagesTests.cs#L81

DgnOnur commented 9 months ago

I need an example that will start the server application.

I enter the server IP address in the physical charging station settings. Is the port information 9900? I should enter my port 9901.

I also need to enter sub path information.

ocpp 2.0.1 or ocpp 1.6