You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//The OCPP function has been activated and then deactivated again.
185
183
184
+
ArduinoOcpp::ocppEngine_loop(); //There could be remaining operations in the OCPP-queue. I will add the OCPP_unitialize() soon as a better solution to this
185
+
return0;
186
+
}
187
+
} else {
188
+
if (config_ocpp_enabled()) {
189
+
initializeArduinoOcpp();
190
+
loadEvseBehavior();
191
+
}
186
192
return50;
187
193
}
188
194
@@ -201,17 +207,7 @@ unsigned long ArduinoOcppTask::loop(MicroTasks::WakeReason reason) {
201
207
onVehicleDisconnect();
202
208
}
203
209
204
-
return50;
205
-
}
206
-
207
-
voidArduinoOcppTask::poll() {
208
-
if (arduinoOcppInitialized) {
209
-
if (config_ocpp_enabled()) {
210
-
OCPP_loop();
211
-
} else {
212
-
ArduinoOcpp::ocppEngine_loop(); //better continue looping. Leftover pending messages could interfere with the networking stack
std::function<void(EvseState&, EvseProperties&)> inferClaimTransactionActive = [] (EvseState&, EvseProperties&) {}; //Transaction engaged and accepted by the CS
40
-
std::function<void(EvseState&, EvseProperties&)> inferClaimTransactionActiveOffline = [] (EvseState&, EvseProperties&) {}; //Transaction request pending. EVSE may choose to start charging
0 commit comments