forked from EVerest/libocpp
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OCPP1.6: Pending transactions at startup (EVerest#610)
* stopping pending transactions in start function * allowing to queue transaction related messages before BootNotification.conf(Accepted) has been received --------- Signed-off-by: pietfried <[email protected]> Signed-off-by: Daniel Moore <[email protected]>
- Loading branch information
Showing
2 changed files
with
21 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Copyright 2020 - 2024 Pionix GmbH and Contributors to EVerest | ||
|
||
#include <ocpp/v16/types.hpp> | ||
|
||
namespace ocpp { | ||
namespace v16 { | ||
namespace utils { | ||
bool is_transaction_message_type(const MessageType& message_type) { | ||
return message_type == MessageType::StartTransaction or message_type == MessageType::StopTransaction or | ||
message_type == MessageType::MeterValues or message_type == MessageType::SecurityEventNotification; | ||
} | ||
} // namespace utils | ||
} // namespace v16 | ||
} // namespace ocpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters