bitbank2 / Thermal_Printer

Arduino library to draw text and graphics on BLE thermal printers
Apache License 2.0
383 stars 54 forks source link

I want to connect to a printer without scan #24

Closed alexodus closed 2 years ago

alexodus commented 2 years ago

I want to connect to a printer without scan but directly with the mac address saved, for example, into a storage

bitbank2 commented 2 years ago

This sounds like a relatively simple change. You can add another implementation of the tpConnect() function with a parameter of the 6-byte BLE device address. Internally it can reformat the address for each of the 3 BLE APIs as needed.