|
ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
|
Public Member Functions | |
| virtual int32_t | get_id () const =0 |
| Return the evse_id of this EVSE. More... | |
| virtual uint32_t | get_number_of_connectors () const =0 |
| Returns the number of connectors of this EVSE. More... | |
| virtual bool | does_connector_exist (ConnectorEnum connector_type) const =0 |
| Check if the given connector type exists on this evse. More... | |
| virtual std::optional< ConnectorStatusEnum > | get_connector_status (std::optional< ConnectorEnum > connector_type)=0 |
| Get connector status. More... | |
| virtual void | open_transaction (const std::string &transaction_id, const int32_t connector_id, const DateTime ×tamp, const MeterValue &meter_start, const std::optional< IdToken > &id_token, const std::optional< IdToken > &group_id_token, const std::optional< int32_t > reservation_id, const ChargingStateEnum charging_state)=0 |
| Opens a new transaction. More... | |
| virtual void | close_transaction (const DateTime ×tamp, const MeterValue &meter_stop, const ReasonEnum &reason)=0 |
Closes the transaction on this evse by adding the given timestamp meter_stop and reason . More... | |
| virtual void | start_checking_max_energy_on_invalid_id ()=0 |
| Start checking if the max energy on invalid id has exceeded. Will call pause_charging_callback when that happens. More... | |
| virtual bool | has_active_transaction () const =0 |
| Indicates if a transaction is active at this evse. More... | |
| virtual bool | has_active_transaction (const int32_t connector_id) const =0 |
Indicates if a transaction is active at this evse at the given connector_id. More... | |
| virtual void | release_transaction ()=0 |
| Releases the reference of the transaction on this evse. More... | |
| virtual std::unique_ptr< EnhancedTransaction > & | get_transaction ()=0 |
| Returns a pointer to the EnhancedTransaction of this evse. More... | |
| virtual void | submit_event (const int32_t connector_id, ConnectorEvent event)=0 |
Submits the given event to the state machine controller of the connector with the given connector_id. More... | |
| virtual void | on_meter_value (const MeterValue &meter_value)=0 |
| Event handler that should be called when a new meter_value for this evse is present. More... | |
| virtual MeterValue | get_meter_value ()=0 |
| Returns the last present meter value for this evse. More... | |
| virtual MeterValue | get_idle_meter_value ()=0 |
| Return the idle meter values for this evse. More... | |
| virtual void | clear_idle_meter_values ()=0 |
| Clear the idle meter values for this evse. More... | |
| virtual Connector * | get_connector (int32_t connector_id) const =0 |
| Returns a pointer to the connector with ID. More... | |
| virtual OperationalStatusEnum | get_effective_operational_status ()=0 |
| Gets the effective Operative/Inoperative status of this EVSE. More... | |
| virtual void | set_evse_operative_status (OperationalStatusEnum new_status, bool persist)=0 |
| Switches the operative status of the EVSE. More... | |
| virtual void | set_connector_operative_status (int32_t connector_id, OperationalStatusEnum new_status, bool persist)=0 |
| Switches the operative status of a connector within this EVSE. More... | |
| virtual void | restore_connector_operative_status (int32_t connector_id)=0 |
| Restores the operative status of a connector within this EVSE to the persisted status and recomputes its effective status. More... | |
| virtual OperationalStatusEnum | get_connector_effective_operational_status (const int32_t connector_id)=0 |
| Get the operational status of a connector within this evse. More... | |
| virtual CurrentPhaseType | get_current_phase_type ()=0 |
| Returns the phase type for the EVSE based on its SupplyPhases. It can be AC, DC, or Unknown. More... | |
| virtual void | set_meter_value_pricing_triggers (std::optional< double > trigger_metervalue_on_power_kw, std::optional< double > trigger_metervalue_on_energy_kwh, std::optional< DateTime > trigger_metervalue_at_time, std::function< void(const std::vector< MeterValue > &meter_values)> send_metervalue_function, boost::asio::io_service &io_service)=0 |
| Set metervalue triggers for California Pricing. More... | |
|
pure virtual |
Clear the idle meter values for this evse.
Implemented in ocpp::v2::Evse.
|
pure virtual |
Closes the transaction on this evse by adding the given timestamp meter_stop and reason .
| timestamp | |
| meter_stop | |
| reason |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Check if the given connector type exists on this evse.
| connector_type | The connector type to check. |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Returns a pointer to the connector with ID.
| connector_id | in this EVSE. |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Get the operational status of a connector within this evse.
| connector_id | The id of the connector. |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Get connector status.
This will search if there is a connector on this evse with status 'Available'. It will search through all connectors, optionally filtering by connector type, and return on the first connector that is 'Available'. If there is no 'Available' connector, it will return the status of the last found connector with the given connector type.
| connector_type | The connector type to filter on (optional). |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Returns the phase type for the EVSE based on its SupplyPhases. It can be AC, DC, or Unknown.
Implemented in ocpp::v2::Evse.
|
pure virtual |
Gets the effective Operative/Inoperative status of this EVSE.
Implemented in ocpp::v2::Evse.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
Returns a pointer to the EnhancedTransaction of this evse.
Implemented in ocpp::v2::Evse.
|
pure virtual |
|
pure virtual |
Indicates if a transaction is active at this evse at the given connector_id.
| connector_id | id of the connector of the evse |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Event handler that should be called when a new meter_value for this evse is present.
| meter_value |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Opens a new transaction.
| transaction_id | id of the transaction |
| connector_id | id of the connector |
| timestamp | timestamp of the start of the transaction |
| meter_start | start meter value of the transaction |
| id_token | id_token with which the transaction was authorized / started |
| group_id_token | optional group id_token |
| reservation | optional reservation_id if evse was reserved |
| sampled_data_tx_updated_interval | Interval between sampling of metering (or other) data, intended to be transmitted via TransactionEventRequest (eventType = Updated) messages |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Releases the reference of the transaction on this evse.
Implemented in ocpp::v2::Evse.
|
pure virtual |
Restores the operative status of a connector within this EVSE to the persisted status and recomputes its effective status.
| connector_id | The ID of the connector |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Switches the operative status of a connector within this EVSE.
| connector_id | The ID of the connector |
| new_status | The operative status to switch to |
| persist | True the updated operative state should be persisted |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Switches the operative status of the EVSE.
| new_status | The operative status to switch to |
| persist | True the updated operative state should be persisted |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Set metervalue triggers for California Pricing.
| trigger_metervalue_on_power_kw | Send metervalues on this amount of kw (with hysteresis). |
| trigger_metervalue_on_energy_kwh | Send metervalues when this kwh is reached. |
| trigger_metervalue_at_time | Send metervalues at a specific time. |
| send_metervalue_function | Function used to send the metervalues. |
| io_service | io service for the timers. |
Implemented in ocpp::v2::Evse.
|
pure virtual |
Start checking if the max energy on invalid id has exceeded. Will call pause_charging_callback when that happens.
Implemented in ocpp::v2::Evse.
|
pure virtual |
Submits the given event to the state machine controller of the connector with the given connector_id.
| connector_id | id of the connector of the evse |
| event |
Implemented in ocpp::v2::Evse.