OCPP16SupportedFeatureProfiles,
type OCPP16TriggerMessageRequest,
type OCPP16TriggerMessageResponse,
+ OCPP16TriggerMessageStatus,
type OCPP16UpdateFirmwareRequest,
type OCPP16UpdateFirmwareResponse,
type OCPPConfigurationKey,
)
this.on(
OCPP16IncomingRequestCommand.TRIGGER_MESSAGE,
- (chargingStation: ChargingStation, request: OCPP16TriggerMessageRequest) => {
+ (
+ chargingStation: ChargingStation,
+ request: OCPP16TriggerMessageRequest,
+ response: OCPP16TriggerMessageResponse
+ ) => {
+ if (response.status !== OCPP16TriggerMessageStatus.ACCEPTED) {
+ return
+ }
const { requestedMessage, connectorId } = request
const errorHandler = (error: Error): void => {
logger.error(
type OCPP16ReserveNowResponse,
type OCPP16StatusNotificationResponse,
type OCPP16TriggerMessageResponse,
+ OCPP16TriggerMessageStatus,
type OCPP16UpdateFirmwareResponse,
type SetChargingProfileResponse,
type UnlockConnectorResponse