• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wirenboard / wb-mqtt-serial / 2

29 Dec 2025 12:28PM UTC coverage: 76.817% (+4.0%) from 72.836%
2

Pull #1045

github

54aa0c
pgasheev
up changelog
Pull Request #1045: Fix firmware version in WB-M1W2 template

6873 of 9161 branches covered (75.02%)

12966 of 16879 relevant lines covered (76.82%)

1651.61 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

65.22
/src/rpc/rpc_config.cpp
1
#include "rpc_config.h"
2
#include <algorithm>
3

4
void TRPCConfig::AddSerialPort(const TSerialPortSettings& settings)
34✔
5
{
6
    Json::Value item;
68✔
7
    item["path"] = settings.Device;
34✔
8
    item["baud_rate"] = settings.BaudRate;
34✔
9
    item["data_bits"] = settings.DataBits;
34✔
10
    item["parity"] = std::string(1, settings.Parity);
34✔
11
    item["stop_bits"] = settings.StopBits;
34✔
12
    PortConfigs.append(std::move(item));
34✔
13
}
34✔
14

15
void TRPCConfig::AddTCPPort(const TTcpPortSettings& settings)
8✔
16
{
17
    Json::Value item;
16✔
18
    item["address"] = settings.Address;
8✔
19
    item["port"] = settings.Port;
8✔
20
    PortConfigs.append(std::move(item));
8✔
21
}
8✔
22

23
void TRPCConfig::AddModbusTCPPort(const TTcpPortSettings& settings)
×
24
{
25
    Json::Value item;
×
26
    item["address"] = settings.Address;
×
27
    item["port"] = settings.Port;
×
28
    item["mode"] = "modbus-tcp";
×
29
    PortConfigs.append(std::move(item));
×
30
}
31

32
Json::Value TRPCConfig::GetPortConfigs() const
×
33
{
34
    return PortConfigs;
×
35
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc