Repository navigation
Version 1.1.3
New features
- Added function
convertT7()to convert from the T7 format - Added class
PowerFactorMeasureto 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