Beispiel #1
0
 public BluetoothClient(Context context, UIUpdateHandler handler, Action <byte[]> WifiCallback, Action <State> StateChangedCallback)
 {
     this.handler              = handler;
     this.context              = context;
     this.WifiCallback         = WifiCallback;
     this.StateChangedCallback = StateChangedCallback;
     SendQueue     = new ConcurrentQueue <String>();
     RecieveThread = new Thread(Recieve);
     SendThread    = new Thread(ProcessSendQueue);
 }
Beispiel #2
0
 public Client(Context context, ImageView imageview, TextView statusview)
 {
     this.context = context;
     handler      = new UIUpdateHandler(imageview, statusview);
     bt           = new BluetoothClient(context, handler, WifiCallback, StateChangedCallback);
 }