System.IO.Ports.SerialPort sp;
try
{
sp = new System.IO.Ports.SerialPort("COM4");
sp.Open();
Encoding encode ;
encode = System.Text.Encoding.Unicode;
sp.Encoding = encode;
sp.WriteLine("Yazicidan cikti alma");
sp.Close();
}
catch
{ MessageBox.Show("yazıcı portu bulunamadı"); }
pda ler veri çıktısı için com4 ve com 9 u kullanırlar. bunu bluetoot ayarlarından
sen kendin belirliyorsun.
Hiç yorum yok:
Yorum Gönder