Managed to implement some stuff, need to rewrite reading from DTU

This commit is contained in:
TraYali 2024-03-17 21:33:21 +01:00
parent f3f1aa3903
commit 9c3ed916b5
10 changed files with 90 additions and 27 deletions

View file

@ -3,6 +3,8 @@
#include <stdint.h>
#include <string>
#include <memory>
#include <mutex>
struct _modbus;
typedef _modbus modbus_t;
@ -38,7 +40,7 @@ class PortParameter {
virtual std::string getOutputValue();
void updateValue(modbus_t *modbus_context, uint16_t portStartAddress);
void updateValue(std::shared_ptr<modbus_t*> modbus_context, std::mutex *modbus_context_mutex, uint16_t portStartAddress);
};
class PortParameterFloat : virtual public PortParameter {