How winginitau/victronvedirectarduino works
VictronVEDirectArduino is a small Arduino library for reading VE.Direct text-protocol statistics and settings. An Arduino sketch supplies a hardware serial port, requests a labeled value, and receives its parsed integer value; the library also supports printing a diagnostic dump. The example demonstrates the read workflow. The README documents extensible labels, but the sampled implementation shows the built-in labels and parsing behavior only.
Main entry points: VEDirect.cpp Serial reader · VEDirect.h VEDirect API · ReadVEDirect.ino Example sketch
Components 7
Other components
- Example sketch
examples/ReadVEDirect/ReadVEDirect.ino - VEDirect API
src/VEDirect.h - Serial reader
src/VEDirect.cpp - VE.Direct device
- Hardware serial
- Serial0 output
- Parsed value
Connections 6
- Example sketch → VEDirect API: constructs and calls
- VEDirect API → Serial reader: implemented by
- VE.Direct device → Hardware serial: sends text
- Serial reader → Hardware serial: reads and configures
- Serial reader → Parsed value: returns value
- Serial reader → Serial0 output: prints dump