esc_pos_bluetooth icon indicating copy to clipboard operation
esc_pos_bluetooth copied to clipboard

How to disconnect printer?

Open HUANGLIWEN opened this issue 3 years ago • 2 comments

I want to disconnect the printer after connected to one printer, No disconnect() method?

HUANGLIWEN avatar Aug 22 '20 16:08 HUANGLIWEN

Try this

BluetoothManager.instance.disconnect();

also, you need to add flutter_bluetooth_basic as a dependency in your pubspec.yml

fer-ri avatar Sep 09 '20 16:09 fer-ri

Try this

BluetoothManager.instance.disconnect();

also, you need to add flutter_bluetooth_basic as a dependency in your pubspec.yml

tks.

HUANGLIWEN avatar Sep 10 '20 08:09 HUANGLIWEN