Skip to content

Version 1.1.3

Choose a tag to compare

@haveyouseenf haveyouseenf released this 14 Mar 14:56
· 14 commits to main since this release

New features

  • Added function convertT7() to convert from the T7 format
  • Added class PowerFactorMeasure to store Power Factor measures read from the Finder 7M and to easily access their kind and value
  • Added functions to read Power Factor total and phases
  • Added example that shows how to read Power Factor total and phases

As an example, the code below reads the total Power Factor from the Finder 7M and it prints its kind and value:

#include <Finder7M.h>

Finder7M f7m;
constexpr uint8_t MODBUS_7M_ADDRESS = 20;

void setup()
{
    Serial.begin(38400);
    if (!f7m.init())
    {
        while (1);
    }
}

void loop()
{
    PowerFactorMeasure powerFactorTotal = f7m.getPowerFactorTotal(MODBUS_7M_ADDRESS);
    Serial.println(powerFactorTotal.isExport());
    Serial.println(powerFactorTotal.isInductive());
    Serial.println(powerFactorTotal.toFloat());
}

Full Changelog: 1.1.2...1.1.3