private void adapter_ConnectionComplete(object sender, HCIEventEventArgs e) { //The real device's connection is complete, save its handle _currentConnectionHandle = (ushort)(e.Buffer[3] | (e.Buffer[4] << 8)); //Let the other PC/device know we're done _Send('C', e.Buffer); }
private void adapter_IncomingDataReceived(object sender, HCIEventEventArgs e) { //Let the other PC/device know we have incoming data _Send('I', e.Buffer); }
private void adapter_ConnectionRequestReceived(object sender, HCIEventEventArgs e) { //Let the other PC/device know we received a connection request _Send('R', e.Buffer); }