Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
BorisBrock committed Oct 4, 2024
1 parent e1819d4 commit c33dc2d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ To compile this project you will need to install VS Code and the PlatformIO exte
## Programming your ESP32

- Start by cloning or downloading this repository.
- Change `board = ...` in platformio.ini to match the ESP32 board you are actually using.
- Copy the file `Credentials.cpp.template` to `Credentials.cpp`.
- Change the SSID and password in `Credentials.cpp` to match your home network settings.
- If you want to use MQTT, also insert your MQTT server's address and your user name / password (can be left empty if not required).
Expand Down
2 changes: 1 addition & 1 deletion src/Components/Modbus/ModbusTCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ namespace ModbusTCP
gModbusServer.start(
Constants::DaheimladenWallbox::TCPPort,
Constants::DaheimladenWallbox::MaxClients,
Constants::DaheimladenWallbox::Timeout);
Constants::DaheimladenWallbox::TimeoutMs);

gModbusServer.registerWorker(Constants::DaheimladenWallbox::ServerId, READ_INPUT_REGISTER, ReadInputRegister);
gModbusServer.registerWorker(Constants::DaheimladenWallbox::ServerId, READ_HOLD_REGISTER, ReadHoldRegister);
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration/Constants.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ namespace Constants
constexpr uint8_t ServerId = 0xFF;
constexpr uint16_t TCPPort = 502;
constexpr uint8_t MaxClients = 8;
constexpr uint32_t Timeout = 2000;
constexpr uint32_t TimeoutMs = 2000;
constexpr float VoltageFactor = 10.0f;
constexpr float CurrentFactor = 10.0f;
constexpr float EnergyFactor = 10.0f;
Expand Down

0 comments on commit c33dc2d

Please sign in to comment.