lukevp / ESC-POS-.NET

Efficient, Easy to Use Thermal Printing & POS (Windows/Linux/OSX, WiFi/BT/USB/Ethernet)
MIT License
503 stars 166 forks source link

Overload SerialPrinter with just portname parameter #190

Open aakash44 opened 1 year ago

aakash44 commented 1 year ago

Currently the serial printer has only 1 init of 2 parameters : var serialPrinter = new SerialPrinter(portName: serialportname, baudRate: serialbaudrate);

Can we have another overload for just portName as baudrate if not set is taken default by the SerialPort to 9600 ?

igorocampos commented 1 year ago

I see no harm on that, I'd say open up a PR and Luke can check it out and approve or comment in it.