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 esp_err_t Lock(TickType_t timeout = portMAX_DELAY) override
Locks the object.
- Parameters:
timeout – timeout in FreeRTOS ticks
- Returns:
error code
-
virtual esp_err_t Unlock() override
Unlocks the object.
- Returns:
error code
-
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