eliasweingaertner / peripage-A6-bluetooth

Directly printing on a Peripage A6 thermal printer via Bluetooth
MIT License
68 stars 11 forks source link

Implement script command to change serial number #3

Open eliasweingaertner opened 3 years ago

eliasweingaertner commented 3 years ago

@bitrate16 figured out that the S/N can be changed via a command:

Using the poke method i've found out that it has additional configuration commands, but now i've lost ability to print text and get S/N

UPD: S/N break code 10ff20f4
UPD2: Write [0x10ff20f4, 'S/N'] will overwrite S/N with new value 'S/N'. String has to be terminated with '\0'
UPD3: 10ffff** configures print modes
UPD4: I don't understand it, sending any raw string makes printer print it

_Originally posted by @bitrate16 in https://github.com/eliasweingaertner/peripage-A6-bluetooth/issues/1#issuecomment-803662260_

Goal of this issue to make this functionality available from the script.