andriyoganp / blue_print_pos

Helper to use bluetooth print in Android and iOS
Apache License 2.0
34 stars 78 forks source link

Fix/ios print digitup printer #42

Open ugifractal opened 2 years ago

ugifractal commented 2 years ago

When I used my digitup printer, I got error because this printer doesn't have characteristics with properties.write == true. But This device has properties.writeWithoutResponse == true. So my PR actually use properties.write to find the characteristics, if the result is empty then use properties.writeWithoutResponse == true to get the characteristics. And seem working on mine.

iandis commented 2 years ago

Hi, thank you for contributing to this repository! However, since I don't know what printer you're using with this library, could you please give me a link to it? Thanks!

ugifractal commented 2 years ago

Hi, thank you for contributing to this repository! However, since I don't know what printer you're using with this library, could you please give me a link to it? Thanks!

here https://www.tokopedia.com/okayindonesia/printer-bluetooth-thermal-kasir-dt-58d-ok-58d-thermal-printer-dt-58d

ankush-ppie commented 2 years ago

When I used my digitup printer, I got error because this printer doesn't have characteristics with properties.write == true. But This device has properties.writeWithoutResponse == true. So my PR actually use properties.write to find the characteristics, if the result is empty then use properties.writeWithoutResponse == true to get the characteristics. And seem working on mine.

Hi, thanks for contribution. Helpful & working fine.