OpenLEADR / openleadr-rs

OpenADR 3.0 VTN and VEN implementation in Rust
Other
12 stars 4 forks source link

Determine payload value type based on enum #93

Open pohlm01 opened 1 day ago

pohlm01 commented 1 day ago

For the payloads in the intervals, the data type of the value is determined by the type of the payload. The VTN should make sure that the data type it expects for the provided type matches the one it received.

https://github.com/OpenLEADR/openleadr-rs/blob/a0d0128fde9efffab171b756edf8e676ce466db1/openleadr-wire/src/event.rs#L237-L246