Registry / networking / libserial

libserial

JSON →
library2025-09-03vcpkgunverified

Serial Port Programming in C++.

vcpkg install libserial
INSTALL
IMPORT
SIG · LIBSERIAL
L
libserial
networkingcppv2025-09-03
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

libserial/SerialPort.h
#include <libserial/SerialPort.h>

Open a serial port, set baud rate, and send data.

#include <libserial/SerialPort.h> #include <iostream> int main() { LibSerial::SerialPort serial; try { serial.Open("/dev/ttyUSB0"); serial.SetBaudRate(LibSerial::BaudRate::BAUD_9600); serial.Write("Hello"); std::cout << "Data sent\n"; } catch (const std::exception& e) { std::cerr << e.what() << std::endl; } return 0; }
Debug
Known issues
gotchaOn Windows, use COM ports like "COM1" instead of "/dev/ttyUSB0".
fix
Adjust the port name according to your operating system.
affects: all
Upgrade
Version history
2025-09-03latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
3 hits · last 30 days
node
2
Amazon
1
Resources

No resource links recorded.

libserial — pip install libserial · libregistry