You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello all,
I have sunmi v2s plus device and it has thermal printer. I'm working on it for a while but I can't print image. I tried this library but I can't connect to my thermal printer. I'm using this code below to connect and print.
`using (BluetoothAdapter bluetoothAdapter = BluetoothAdapter.DefaultAdapter)
{
BluetoothDevice device = (from bd in bluetoothAdapter?.BondedDevices
where bd?.Name == deviceName
select bd).FirstOrDefault();
try
{
// "00001101-0000-1000-8000-00805f9b34fb" is common UUID for printer & scanner.
using (BluetoothSocket socket = device?.CreateRfcommSocketToServiceRecord(UUID.FromString("00001101-0000-1000-8000-00805F9B34FB")))
{
I can't figure out how to connect via this library . // USB, Bluetooth, or Serial var printer = new SerialPrinter(portName: "COM5", baudRate: 115200);
How can I connect my thermal printer with this library ? I don't have any port or IP adress.
The text was updated successfully, but these errors were encountered:
In #51 you can check the conversation about that. But currently you would have to manually open the socket (as you are already doing) and then send all bytes to it. You can still use this library to generate the bytes you need.
Hello all,
I have sunmi v2s plus device and it has thermal printer. I'm working on it for a while but I can't print image. I tried this library but I can't connect to my thermal printer. I'm using this code below to connect and print.
`using (BluetoothAdapter bluetoothAdapter = BluetoothAdapter.DefaultAdapter)
{
BluetoothDevice device = (from bd in bluetoothAdapter?.BondedDevices
where bd?.Name == deviceName
select bd).FirstOrDefault();
try
{
// "00001101-0000-1000-8000-00805f9b34fb" is common UUID for printer & scanner.
using (BluetoothSocket socket = device?.CreateRfcommSocketToServiceRecord(UUID.FromString("00001101-0000-1000-8000-00805F9B34FB")))
{
socket?.Connect();
//Print issues
socket.Close();
}
}
catch (Exception ex)
{
throw ex;
}`
I can't figure out how to connect via this library .
// USB, Bluetooth, or Serial var printer = new SerialPrinter(portName: "COM5", baudRate: 115200);
How can I connect my thermal printer with this library ? I don't have any port or IP adress.
The text was updated successfully, but these errors were encountered: