private void WriteButtonOnClick(object sender, EventArgs eventArgs)
        {
            var text = FindViewById <EditText>(Resource.Id.WriteTextField).Text;

            if (string.IsNullOrEmpty(text))
            {
                ShowDialog("Enter some text to write!");
                return;
            }

            ShowDialog("Start writing...");
            _writingHandler.Write(Encoding.ASCII.GetBytes(text), _characteristic, true);
        }
Esempio n. 2
0
 public void Write(byte[] TxBuff, int timeout = 1000)
 {
     _writingHandler.Write(TxBuff, _characteristic, true);
 }