PL::BlackBoxModbusServerConfiguration class
-
class BlackBoxModbusServerConfiguration : public PL::BlackBoxServerConfiguration
BlackBox Modbus server configuration.
Public Functions
Creates a BlackBox Modbus server configuration.
- Parameters:
modbusServer – Modbus server
nvsNamespaceName – NVS namespace name
-
virtual void Load() override
Loads the configuration.
-
virtual void Save() override
Saves the configuration.
-
virtual void Apply() override
Applies the configuration to the server.
-
virtual void Erase() override
Erases the configuration.
Public Members
-
BlackBoxConfigurationParameter<ModbusProtocol> protocol
protocol parameter
-
BlackBoxConfigurationParameter<uint8_t> stationAddress
station address parameter
-
BlackBoxConfigurationParameter<uint16_t> port
port parameter
-
BlackBoxConfigurationParameter<size_t> maxNumberOfClients
max number of clients parameter
-
BlackBoxConfigurationParameter<bool> enabled = BlackBoxConfigurationParameter<bool>(true)
enabled parameter
Public Static Attributes
-
static const std::string protocolNvsKey
protocol parameter NVS key
-
static const std::string stationAddressNvsKey
station address parameter NVS key
-
static const std::string portNvsKey
port parameter NVS key
-
static const std::string maxNumberOfClientsNvsKey
max number of clients parameter NVS key
-
static const std::string enabledNvsKey
enabled parameter NVS key