Migliora discovery e pubblicazione MQTT per inverter in cascata
Build Docker Image for Raspberry Pi / build-and-push (push) Successful in 9m22s
Build Docker Image for Raspberry Pi / build-and-push (push) Successful in 9m22s
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
#include <string>
|
||||
#include <thread>
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
|
||||
using namespace std;
|
||||
|
||||
@@ -23,6 +24,12 @@ class cInverter {
|
||||
int buf_qpiws;
|
||||
int buf_qmod;
|
||||
int buf_qpigs;
|
||||
int last_reply_size;
|
||||
|
||||
int openSerial();
|
||||
void closeSerial(int fd);
|
||||
bool sendCommand(int fd, const std::string &cmd);
|
||||
bool readReply(int fd, std::string &payload);
|
||||
|
||||
void SetMode(char newmode);
|
||||
bool CheckCRC(unsigned char *buff, int len);
|
||||
@@ -47,6 +54,7 @@ class cInverter {
|
||||
void AutoDiscoverBufferSizes();
|
||||
int DiscoverParallelInverters(); // Returns number of parallel inverters
|
||||
string GetParallelStatus(int inverter_num); // Get QPGS data for specific inverter
|
||||
int QueryParallelQpgs(int count, std::vector<std::string> &replies);
|
||||
};
|
||||
|
||||
#endif // ___INVERTER_H
|
||||
|
||||
Reference in New Issue
Block a user