openleadr-python icon indicating copy to clipboard operation
openleadr-python copied to clipboard

Support for VTN-to-VEN Reports

Open gthole opened this issue 1 year ago • 0 comments

Allow clients to implement VTN-to-VEN reports with poll callback handlers.

Add callback handlers for oadrRegisterReport and oadrUpdateReport Poll messages.

Notes:

  • oadrRegisterReport will still return an oadrRegisteredReport with no requested reports as before, so there is no change to that behavior unless a VEN client adds a handler.
  • oadrUpdateReport previously would crash the client since it would attempt to call an _on_report method that does not exist on the Client class. Now it will return an oadrUpdatedReport to the VTN and call a handler.

Many thanks for this excellent project!

gthole avatar Nov 14 '24 14:11 gthole