Functions used for data logging and external system communication.
More...
|
| namespace | TeleInfo |
| | The telemetry frame of the IoT output.
|
| |
Functions used for data logging and external system communication.
This group includes functions that manage telemetry data collection and transmission. It supports integration with external systems like HomeAssistant, providing real-time data on power, voltage, temperature, and system status. Telemetry also includes diagnostic information.
- Note
- The telemetry feature ensures that the system's performance and status can be monitored remotely.
◆ printJsonStep()
| bool printJsonStep |
( |
Print & | out, |
|
|
uint8_t | step ) |
|
inline |
One step of the datalog in JSON format.
One field per step (see serial_output.h), which gives: {"P":-25,"R":0,"P1":399,"P2":399,"P3":-823,"T1":21.37,"TA":"low"}
- total mean power over the datalog period, and the relays' average if relay diversion is enabled;
- mean power of each phase;
- each valid temperature, if temperature sensing is enabled;
- the tariff, if dual tariff is enabled.
- Parameters
-
| out | Where to write. |
| step | Index of the step. |
- Returns
- false once the line is complete.
Definition at line 314 of file utils.h.
◆ printTextStep()
| bool printTextStep |
( |
Print & | out, |
|
|
uint8_t | step ) |
|
inline |
One step of the datalog in text format.
One field per step (see serial_output.h):
- energy in the bucket, total power (and the relays' average if relay diversion is enabled);
- power and RMS voltage of each phase;
- each valid temperature, if temperature sensing is enabled;
- the number of sample sets, and the absence of diverted energy count if priority rotation is automatic.
- Parameters
-
| out | Where to write. |
| step | Index of the step. |
- Returns
- false once the line is complete.
Definition at line 384 of file utils.h.
◆ writeTeleInfoStep()
| bool writeTeleInfoStep |
( |
Print & | out, |
|
|
uint8_t | step ) |
|
inline |
One step of the telemetry frame, in IoT format: one line (see TeleInfo::writeFrameStep()).
- Parameters
-
| out | Where to write. |
| step | Index of the step. |
- Returns
- false once the frame is complete.
Definition at line 573 of file utils.h.