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); }
public Client(Context context, ImageView imageview, TextView statusview) { this.context = context; handler = new UIUpdateHandler(imageview, statusview); bt = new BluetoothClient(context, handler, WifiCallback, StateChangedCallback); }