проверка на отсутствие

This commit is contained in:
Dmitry Borisenko
2022-09-27 20:55:16 +02:00
parent f92291c545
commit 62ff324139
7 changed files with 55 additions and 29 deletions

View File

@@ -1,7 +1,6 @@
#pragma once
#include <Arduino.h>
#include <SoftwareSerial.h>
#define PZEM_DEFAULT_ADDR 0xF8
@@ -22,13 +21,13 @@ class PZEMSensor {
PZEMSensor(Stream *serial, uint16_t addr = PZEM_DEFAULT_ADDR);
~PZEMSensor();
PZEM_Info* values();
PZEM_Info *values(bool &online);
bool setAddress(uint8_t addr);
uint8_t getAddress();
bool setPowerAlarm(uint16_t watts);
bool getPowerAlarm();
bool reset();
void search();
bool search();
// Get most up to date values from device registers and cache them
bool refresh();