januslo / react-native-bluetooth-escpos-printer

React-Native plugin for the bluetooth ESC/POS & TSC printers.
MIT License
349 stars 409 forks source link

Please add new type in pairedDeivce for device identification #206

Open dipeshpanamax opened 1 year ago

dipeshpanamax commented 1 year ago

RNBluetoothManagerModule -> enableBluetooth please new code inside on enableBluetooth method.

obj.put("majorDevice", d.getBluetoothClass().getMajorDeviceClass());

using this we can identify the type of device return from android side. Thanks in advance. image

shubham-s3 commented 5 months ago

Hi @dipeshpanamax , what are the possible values of d.getBluetoothClass().getMajorDeviceClass() and how this is helpful, do you mind sharing more info please?