Protocol to control the simulator via a Websocket or HTTP server.
+### HTTP Protocol
+
+A Postman and [Insomnia](https://insomnia.rest/) collection, to learn how to use the HTTP protocol to pilot the simulator, is available in [src/assets](./src/assets/) directory.
+
### WebSocket Protocol
PDU stands for Protocol Data Unit.
`uuid`: String uniquely linking the response to the request
`PDU`: Response data to requested procedure
-### Version 0.0.1
+#### Version 0.0.1
Set the WebSocket header _Sec-Websocket-Protocol_ to `ui0.0.1`.
-#### Procedures
+##### Procedures
-##### Start Simulator
+###### Start Simulator
- Request:
`ProcedureName`: 'startSimulator'
`status`
}
-##### Stop Simulator
+###### Stop Simulator
- Request:
`ProcedureName`: 'stopSimulator'
`status`
}
-##### List Charging Stations
+###### List Charging Stations
- Request:
`ProcedureName`: 'listChargingStations'
`index`: ChargingStationData
}
-##### Start Transaction
+###### Start Transaction
- Request:
`ProcedureName`: 'startTransaction'
`status`
}
-##### Stop Transaction
+###### Stop Transaction
- Request:
`ProcedureName`: 'stopTransaction'
`status`
}
-##### Start Charging Station
+###### Start Charging Station
- Request:
`ProcedureName`: 'startChargingStation'
`PDU`: {
- `hashId`: charging station unique identifier string (deprecated) | `hashIds`: charging station unique identifier strings array
+ `hashId`: charging station unique identifier string (deprecated) | `hashIds`: charging station unique identifier strings array
}
- Response:
`status`
}
-##### Stop Charging Station
+###### Stop Charging Station
- Request:
`ProcedureName`: 'stopChargingStation'
`status`
}
-##### Open Connection
+###### Open Connection
- Request:
`ProcedureName`: 'openConnection'
`status`
}
-##### Close Connection
+###### Close Connection
- Request:
`ProcedureName`: 'closeConnection'
`status`
}
-### HTTP Protocol
-
-A Postman or [Insomnia](https://insomnia.rest/) collection, to learn how to use the HTTP protocol to pilot the simulator, is available.
-
## Support, Feedback, Contributing
This project is open to feature requests/suggestions, bug reports etc. via [GitHub issues](https://github.com/SAP/e-mobility-charging-stations-simulator/issues). Contribution and feedback are encouraged and always welcome. For more information about how to contribute, the project structure, as well as additional contribution information, see our [Contribution Guidelines](CONTRIBUTING.md).