I’ve added support for notification of vehicle error codes, in the same way as v2.
Codes raised with:
NotifyErrorCode(uint32_t code, uint32_t data, bool raised, bool force=false);
The code can be raised with raised=true, or cleared with raised=false.
To suppress flapping of error codes, the system keeps track of previous codes (notify errorcode list, notify errorcode clear), and will only send a notification once a code is silent for 120 seconds.
You can test with ‘notify raise errorcode <code> <data> <yes|no>’.
The Tesla Roadster vehicle code has an example for this.
Regards, Mark.
Commit: a3ecc5c7eb56caa96d7bbf3ecb68faadc586e6de https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/commit/a3ec... Author: Mark Webb-Johnson <mark@webb-johnson.net> Date: 2018-05-13 (Sun, 13 May 2018)
Changed paths: M vehicle/OVMS.V3/main/ovms_notify.cpp M vehicle/OVMS.V3/main/ovms_notify.h
Log Message:
Error code notification system