3-phase PV router
Loading...
Searching...
No Matches
Telemetry feature

Functions used for data logging and external system communication. More...

Namespaces

namespace  TeleInfo
 The telemetry frame of the IoT output.
 

Classes

struct  TeleInfoData
 The data of the IoT frame, for TeleInfo::writeFrameStep(). More...
 

Functions

bool printJsonStep (Print &out, uint8_t step)
 One step of the datalog in JSON format.
 
bool printTextStep (Print &out, uint8_t step)
 One step of the datalog in text format.
 
bool writeTeleInfoStep (Print &out, uint8_t step)
 One step of the telemetry frame, in IoT format: one line (see TeleInfo::writeFrameStep()).
 

Detailed Description

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.

Function Documentation

◆ 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
outWhere to write.
stepIndex of the step.
Returns
false once the line is complete.

Definition at line 314 of file utils.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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
outWhere to write.
stepIndex of the step.
Returns
false once the line is complete.

Definition at line 384 of file utils.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ writeTeleInfoStep()

bool writeTeleInfoStep ( Print & out,
uint8_t step )
inline

One step of the telemetry frame, in IoT format: one line (see TeleInfo::writeFrameStep()).

Parameters
outWhere to write.
stepIndex of the step.
Returns
false once the frame is complete.

Definition at line 573 of file utils.h.

Here is the call graph for this function:
Here is the caller graph for this function: