version 1.16.0_alpha

PISerial::availableDevicesInfo (Linux and Windows)
This commit is contained in:
2020-05-26 16:08:38 +03:00
parent 6413e7747e
commit b6ab5aa202
5 changed files with 308 additions and 68 deletions

View File

@@ -112,15 +112,17 @@ private:
*/
PIKbdListener kbd;
PIKbdListener kbd(0, 0, false);
int main(int argc, char * argv[]) {
/*PIStringList dl = PISerial::availableDevices();
piCout << dl;
PISerial ser(dl[0]);
piCout << ser.open(PIIODevice::ReadWrite) << &ser;
*/
PIConfig conf("d:/orders/nicirt/bin/spec_core.conf", PIIODevice::ReadOnly);
piCout << conf.allTree();
//piCout << PISerial::availableDevicesInfo();
PIIODevice * d = PIIODevice::createFromFullPath(argv[1]);
piCout << d;
if (d) {
d->open();
piCout << d->constructFullPath() << d->isOpened();
}
return 0;
}