changed to long long for windows
This commit is contained in:
parent
170c141576
commit
2cb7e67df8
8 changed files with 17 additions and 17 deletions
|
|
@ -18,7 +18,7 @@ class Dtu {
|
|||
|
||||
void populateMicroinverters();
|
||||
|
||||
std::pair<bool, Microinverter*> getMicroinverterBySerialNumber(long serialNumber);
|
||||
std::pair<bool, Microinverter*> getMicroinverterBySerialNumber(long long serialNumber);
|
||||
|
||||
public:
|
||||
Dtu(const char *ip_address, int port);
|
||||
|
|
@ -27,11 +27,11 @@ class Dtu {
|
|||
|
||||
// void updateMicroinverters();
|
||||
|
||||
void updateMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long> µinvertersToGet);
|
||||
void updateMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long long> µinvertersToGet);
|
||||
|
||||
// void printMicroinverters();
|
||||
|
||||
void printMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long> µinvertersToGet);
|
||||
void printMicroinverters(std::vector<std::string> ¶metersToGet, bool allParameters, std::vector<long long> µinvertersToGet);
|
||||
|
||||
~Dtu();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -24,9 +24,9 @@ class Microinverter {
|
|||
|
||||
public:
|
||||
Microinverter(
|
||||
std::shared_ptr<class modbus> modbus, long serialNumber);
|
||||
std::shared_ptr<class modbus> modbus, long long serialNumber);
|
||||
|
||||
long serialNumber;
|
||||
long long serialNumber;
|
||||
|
||||
std::vector<Port> ports;
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ class PortParameter {
|
|||
enum PortParameterValueType { Int, Float };
|
||||
|
||||
union PortParameterValue {
|
||||
long i;
|
||||
long long i;
|
||||
float f;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue