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

wirenboard / wb-mqtt-serial / 6

13 Jan 2026 06:31AM UTC coverage: 76.817% (+4.0%) from 72.836%
6

Pull #1049

github

8b2ffc
Ilia1S
Remove fw from groups
Pull Request #1049: WB-MR templates: Add delays

6873 of 9161 branches covered (75.02%)

12966 of 16879 relevant lines covered (76.82%)

830.18 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)
17✔
5
{
6
    Json::Value item;
34✔
7
    item["path"] = settings.Device;
17✔
8
    item["baud_rate"] = settings.BaudRate;
17✔
9
    item["data_bits"] = settings.DataBits;
17✔
10
    item["parity"] = std::string(1, settings.Parity);
17✔
11
    item["stop_bits"] = settings.StopBits;
17✔
12
    PortConfigs.append(std::move(item));
17✔
13
}
17✔
14

15
void TRPCConfig::AddTCPPort(const TTcpPortSettings& settings)
4✔
16
{
17
    Json::Value item;
8✔
18
    item["address"] = settings.Address;
4✔
19
    item["port"] = settings.Port;
4✔
20
    PortConfigs.append(std::move(item));
4✔
21
}
4✔
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