Implemented QML skeleton for the application

This commit is contained in:
Yury Shuvakin
2022-08-15 08:49:12 +03:00
parent 14a7aa699f
commit dce22c65d6
36 changed files with 791 additions and 117 deletions

View File

@@ -517,6 +517,16 @@ QList<VSerialInfo_t> BMSInterface::listSerialPorts()
return res;
}
QStringList BMSInterface::serialPortNames()
{
QStringList names;
for (const auto& info: listSerialPorts())
{
names.append(info.systemPath);
}
return names;
}
void BMSInterface::connectTcp(QString server, int port)
{
mLastTcpServer = server;