mirror of
https://github.com/siemens-mobile-hacks/node-sie-serial.git
synced 2026-11-25 17:17:17 +00:00
13 lines
241 B
TypeScript
13 lines
241 B
TypeScript
import { AsyncSerialPort } from "./AsyncSerialPort.js";
|
|
|
|
export class BaseSerialProtocol {
|
|
protected readonly port: AsyncSerialPort;
|
|
|
|
constructor(port: AsyncSerialPort) {
|
|
this.port = port;
|
|
}
|
|
|
|
getSerialPort() {
|
|
return this.port;
|
|
}
|
|
}
|