/// <summary> /// Handler for test device OnDataReceived events. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void TestClient_OnDataReceived(object sender, TestControllerEventArgs e) { //System.Diagnostics.Debug.WriteLine("CTRL REC: " + e.Data.Length); if (e.Data.Length > 0) { foreach (byte b in e.Data) { base.ReceiveFromDevice(b); } // Tell our listeners that data has been received. BroadcastDataReceived(); } }
/// <summary> /// Handler for test device OnDataReceived events. /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void TestClient_OnDataReceived(object sender, TestControllerEventArgs e) { //System.Diagnostics.Debug.WriteLine("CTRL REC: " + e.Data.Length); if (e.Data.Length > 0) { foreach (byte b in e.Data) base.ReceiveFromDevice(b); // Tell our listeners that data has been received. BroadcastDataReceived(); } }