25 lines
419 B
C
25 lines
419 B
C
#ifndef MODBUSCONFIG_H
|
|
#define MODBUSCONFIG_H
|
|
|
|
#include "modbusaddress.h"
|
|
|
|
#include <QString>
|
|
|
|
struct ModbusConfig
|
|
{
|
|
QString host;
|
|
int port;
|
|
int serverAddress;
|
|
int timeoutMs;
|
|
int retryCount;
|
|
int pollIntervalMs;
|
|
int feedbackTimeoutMs;
|
|
int reconnectDelayMs;
|
|
int reconnectAttempts;
|
|
ModbusAddressMap addressMap;
|
|
|
|
static ModbusConfig defaultConfig();
|
|
};
|
|
|
|
#endif // MODBUSCONFIG_H
|