Comments (2)
Sorry, need to row back on this. The onRequest listener is executed after the internal MicroOcpp handlers, and in this case only after refreshFilename()
gets called.
If I get more feedback about the start- and stopTime in the diagnostics filename, I will add these fields to the refreshFilename()
signature as well. For now, the only valid solution is to "rebuild" the GetDiagnostics operation by copying GetDiagnostics.h and GetDiagnostics.cpp into your own sources, changing conflicting names and then overloading the internal GetDiagnostics similar to this:
MicroOcpp/src/MicroOcpp/Model/Diagnostics/DiagnosticsService.cpp
Lines 27 to 28 in 47cc0e4
The overload needs to happen after the initialization of DiagnosticsService.
from microocpp.
Thanks a lot for the report!
- Fixed it on main.
- The default constructor initializes it to 1970-01-01 which means "undefined". The callee should check the timestamp values first:
if (startTime >= MIN_TIME) {
//startTime defined, process it here
}
- Nice idea, will think about it. As a workaround for now, you can get the original payload of the GetDiagnostics by setting an "onRequest" listener which is executed with the original OCPP message payload:
Then you could store the startTime and stopTime strings somewhere and read them again when refreshFilename()
is called. Setting the onRequest listener won't interfere the normal execution in the DiagnosticsService.
from microocpp.
Related Issues (20)
- First StatusNotification 1970-01-01 timestamp HOT 3
- [Firmware Update]How Can We do The Firmware update in ESP-IDF, there is no any document available how to implement it.. HOT 1
- Unable to Remote Start Transaction strangely one day HOT 3
- Server error, data loss! HOT 2
- Error compiling for board DOIT ESP32 DEVKIT V1
- What value do I measure with "L1" compared to "L1-N" and "L1-L2", according to the protocol specifications? What value do I get via "L1"? HOT 1
- ESP32-IDF ESP32C3 : How to test all the ocpp opetrations over esp32 module HOT 3
- Offline Start transaction using local list HOT 2
- Ethernet (W5500) Support with Mongoose WebSocket Adapter on Arduino platform HOT 2
- Error compiling for board DOIT ESP32 DEVKIT V1
- How to send 'Finishing' when receive 'SoftReset' during charging. Not 'Unableable' HOT 2
- Is OCPP 1.6 security whitepaper edition 3 planned HOT 1
- How to pass the OCTT tast case 2.4.3. EV Side Disconnected HOT 4
- How to make specific feature not support HOT 1
- configuration key 'ChargingScheduleAllowedChargingRateUnit' accessibility is wrong, and some item is missing HOT 2
- AuthorizeRemoteTxRequests key functional implementation HOT 1
- Strange state transaciton handling HOT 7
- Scheduled charging on Power cut HOT 1
- Plugged connector check
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from microocpp.