receiptline / receiptline

Markdown for receipts. Printable digital receipts. Generate receipt printer commands and images.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Baud rate with the Serial-LAN Converter

kudarisenmon opened this issue · comments

Could you please help me to be able to specify the baud rate with the Serial-LAN Converter?

I am using the Fujitsu FP-510 serial port model.
The default baud rate for this model is 115200 BPS.
On the other hand, the baud rate in the Serial-LAN Converter seems to be hard coded at 9600 BPS.

https://github.com/receiptline/receiptline/blob/e9da70931442d771db01a94384ba57bb66eda0ca/designer.js#L49C63-L49C63

I am now using my FP-510 with the setting changed to 9600BPS.

Additionally, the ReceiptIO project seems to be hard coded at 115200BPS.
https://github.com/receiptline/receiptio/blob/371fed0c9215f7c20275f77ee97a3827242facc5/lib/receiptio.js#L505C41-L505C41

I am now using my FP-510 settings switched.

It would be useful if the baud rate could be set in servers.json.

Thank you.