-
-
Notifications
You must be signed in to change notification settings - Fork 508
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
switch to emelianov modbus repository
- Loading branch information
Alois Klingler
committed
Aug 1, 2024
1 parent
4888113
commit 4b82f64
Showing
4 changed files
with
77 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,25 @@ | ||
#pragma once | ||
|
||
#include <TaskSchedulerDeclarations.h> | ||
#include <cstdint> | ||
#include "Configuration.h" | ||
#include <ModbusIP_ESP8266.h> | ||
#include <Hoymiles.h> | ||
|
||
class ModbusDtuClass { | ||
public: | ||
void init(); | ||
void loop(); | ||
ModbusDtuClass(); | ||
void init(Scheduler& scheduler); | ||
|
||
private: | ||
uint32_t _lastPublish = 0; | ||
void loop(); | ||
void setup(); | ||
void modbus(); | ||
bool _isstarted = false; | ||
float _lasttotal = 0; | ||
|
||
Task _loopTask; | ||
Task _modbusTask; | ||
}; | ||
|
||
extern ModbusDtuClass ModbusDtu; | ||
extern ModbusDtuClass ModbusDtu; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters