public TappyReader(CommunicationProtocol protocol, Bluegiga.BLE.Events.Connection.DisconnectedEventHandler disconnectCallback) { if (protocol == CommunicationProtocol.Usb) { conn = new UsbConnection(); } else if (protocol == CommunicationProtocol.Bluetooth) { conn = new BluetoothConnection(disconnectCallback); } buffer = new List <byte>(); conn.DataReceived += new EventHandler(DataReceivedHandler); DeviceName = null; }
/// <summary> /// Add a method to be called if the BLE is disconnected /// </summary> public void setDisconnectCallback(Bluegiga.BLE.Events.Connection.DisconnectedEventHandler disconnectCallback) { conn.setDisconnectCallback(disconnectCallback); }
public override void setDisconnectCallback(Bluegiga.BLE.Events.Connection.DisconnectedEventHandler disconnectCallback) { throw new System.NotImplementedException(); }
public abstract void setDisconnectCallback(Bluegiga.BLE.Events.Connection.DisconnectedEventHandler disconnectCallback);