Go to the documentation of this file.
30 unsigned long nConectedDevices;
39 nConectedDevices = (
unsigned long)lstDevs.size();
41 cout <<
"There are " << nConectedDevices <<
" USB devices - "
45 for (
size_t i = 0; i < nConectedDevices; i++)
46 cout << lstDevs[i] << endl;
48 printf(
"\nPRESS ANY KEY TO END THE PROGRAM...\n\n");
50 std::this_thread::sleep_for(500ms);
61 catch (std::exception& e)
63 std::cout <<
"EXCEPCION: " << e.what() << std::endl;
68 printf(
"Another exception!!");
bool kbhit() noexcept
An OS-independent version of kbhit, which returns true if a key has been pushed.
void ListAllDevices(TFTDIDeviceList &outList)
Generates a list with all FTDI devices connected right now.
std::string dateTimeToString(const mrpt::system::TTimeStamp t)
Convert a timestamp into this textual form (UTC time): YEAR/MONTH/DAY,HH:MM:SS.MMM.
std::deque< TFTDIDevice > TFTDIDeviceList
Used in CInterfaceFTDI::ListAllDevices.
Serial and networking devices and utilities.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
A definition of a CStream actually representing a USB connection to a FTDI chip.
mrpt::system::TTimeStamp getCurrentTime()
Returns the current (UTC) system time.
void Test_EnumerateDevices()
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |