We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 60c98da commit 666170dCopy full SHA for 666170d
src/Modbus_TCP_Client.hpp
@@ -33,9 +33,9 @@ class Client {
33
* @param tcp_timeout tcp timeout (currently only available on linux systems)
34
*/
35
explicit Client(const std::string &ip = "0.0.0.0",
36
- short unsigned int port = 502,
37
- modbus_mapping_t *mapping = nullptr,
38
- std::size_t tcp_timeout = 5);
+ short unsigned int port = 502,
+ modbus_mapping_t *mapping = nullptr,
+ std::size_t tcp_timeout = 5);
39
40
/**
41
* @brief create modbus client (TCP server) with dedicated mappings per client id
@@ -46,9 +46,9 @@ class Client {
46
47
48
Client(const std::string &ip,
49
- short unsigned int port,
50
- modbus_mapping_t *mappings[MAX_CLIENT_IDS],
51
+ short unsigned int port,
+ modbus_mapping_t *mappings[MAX_CLIENT_IDS],
52
53
/*! \brief destroy the modbus client
54
*
src/main.cpp
@@ -312,12 +312,12 @@ int main(int argc, char **argv) {
312
std::unique_ptr<Modbus::TCP::Client> client;
313
try {
314
client = std::make_unique<Modbus::TCP::Client>(args["ip"].as<std::string>(),
315
- args["port"].as<uint16_t>(),
316
- mb_mappings.data(),
+ args["port"].as<uint16_t>(),
+ mb_mappings.data(),
317
#ifdef OS_LINUX
318
- args["tcp-timeout"].as<std::size_t>());
+ args["tcp-timeout"].as<std::size_t>());
319
#else
320
- 0);
+ 0);
321
#endif
322
client->set_debug(args.count("monitor"));
323
} catch (const std::runtime_error &e) {
0 commit comments