-
Notifications
You must be signed in to change notification settings - Fork 22
/
growatt.h
35 lines (27 loc) · 1005 Bytes
/
growatt.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
//***************************************************************************
// Automation Control
// File growatt.h
// This code is distributed under the terms and conditions of the
// GNU GENERAL PUBLIC LICENSE. See the file LICENSE for details.
// Date 04.11.2010 - 01.12.2023 Jörg Wendel
//***************************************************************************
// The GroWatt need MQTT communication as described here:
// https://github.com/otti/Growatt_ShineWiFi-S
//***************************************************************************
#include <vector>
#include "lib/common.h"
//***************************************************************************
// Gro Watt
//***************************************************************************
class GroWatt
{
public:
static int getAddressOf(const char* key);
private:
struct Def
{
int address {na};
const char* unit {};
};
static std::map<std::string,Def> sensors;
};