Registry / networking / cserialport

cserialport

JSON →
library4.3.3vcpkgunverified

C++ lightweight cross-platform serial port library and protocol parsing, also support C, C#, Java, Python, Node.js, Electron, Rust etc.

vcpkg install cserialport
INSTALL
IMPORT
SIG · CSERIALPORT
C
cserialport
networkingcppv4.3.3
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.

CSerialPort/CSerialPort.h
#include <CSerialPort/CSerialPort.h>

Open serial port, write data, and close

#include <CSerialPort/CSerialPort.h> #include <iostream> int main() { CSerialPort port; port.init("/dev/ttyUSB0", 9600); port.open(); std::string data = "Hello"; port.write(data.data(), data.size()); port.close(); return 0; }
Debug
Known issues
gotchaPlatform-specific serial port names (e.g., COM1 on Windows, /dev/ttyUSB0 on Linux)
fix
Use appropriate port name for your operating system
affects: *
Upgrade
Version history
4.3.3latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
11 hits · last 30 days
node
10
OpenAI (training)
1
Resources

No resource links recorded.

cserialport — pip install cserialport · libregistry