ocpp 0.24.1
A C++ implementation of the Open Charge Point Protocol
Public Types | Public Member Functions | List of all members
ocpp::v16::ChargePointFSM Class Reference

Public Types

using StatusNotificationCallback = std::function< void(const ChargePointStatus status, const ChargePointErrorCode error_code, const ocpp::DateTime &timestamp, const std::optional< CiString< 50 > > &info, const std::optional< CiString< 255 > > &vendor_id, const std::optional< CiString< 50 > > &vendor_error_code)>
 

Public Member Functions

 ChargePointFSM (const StatusNotificationCallback &status_notification_callback, FSMState initial_state)
 
bool handle_event (FSMEvent event, const ocpp::DateTime timestamp, const std::optional< CiString< 50 > > &info)
 
bool handle_error (const ErrorInfo &error_info)
 
bool handle_error_cleared (const std::string uuid)
 
bool handle_all_errors_cleared ()
 
void trigger_status_notification ()
 
FSMState get_state ()
 
std::optional< ErrorInfoget_latest_error ()
 

The documentation for this class was generated from the following files: