3-phase PV router
Loading...
Searching...
No Matches
teleinfo.h File Reference

Manages telemetry data and frame formatting. More...

#include <Arduino.h>
#include "config_system.h"
#include "config.h"
Include dependency graph for teleinfo.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TeleInfo
 A class for managing and sending telemetry information in a structured frame format. More...
 

Functions

static constexpr size_t calcBufferSize ()
 Calculates the total buffer size required for the telemetry frame.
 
static constexpr size_t lineSize (size_t tagLen, size_t valueLen)
 Calculates the size of a single telemetry line in the frame.
 

Detailed Description

Manages telemetry data and frame formatting.

Author
your name (you@d.nosp@m.omai.nosp@m.n.com)

This file defines the TeleInfo class, which is responsible for creating and sending telemetry frames. It includes functions for calculating buffer sizes, formatting data, and ensuring data integrity with checksums.

  • Frame Structure: Frames start with a Start-of-Text (STX) character and end with an End-of-Text (ETX) character.
  • Checksum: Ensures data integrity for each line in the frame.
  • Conditional Features: Supports optional features like relay diversion and temperature sensing.
Version
0.1
Date
2025-04-04

Definition in file teleinfo.h.