Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Print to bluetooth printer on react-native [closed]

Is it possible to print text to bluetooth printer using react native? There are libraries for bluetooth ble, but it's not clear how to do that.

Some ble library and this too

Thanks a lot for your response

like image 710
bubleh Avatar asked Jan 04 '23 01:01

bubleh


1 Answers

I found the function by using react-native-bluetooth-serial, the example is working with some changes. But in the documentation, it's not clear how to do print. Just use the write function in the example, write parameter is string. Add the '\n' after write parameter and it will work.

like image 113
bubleh Avatar answered Jan 05 '23 14:01

bubleh