Implemented QML skeleton for the application
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user