/// <summary> /// This event handler is called when a connection update request has been received. /// A connection update must be responded to in two steps: sending a connection update /// response, and performing the actual update. /// </summary> void OnConnectionUpdateRequest(object sender, ConnectionUpdateRequestEventArgs arguments) { Task.Factory.StartNew(() => { masterEmulator.SendConnectionUpdateResponse(arguments.Identifier, ConnectionUpdateResponse.Accepted); BtConnectionParameters updateParams = new BtConnectionParameters(); updateParams.ConnectionIntervalMs = arguments.ConnectionIntervalMinMs; updateParams.SupervisionTimeoutMs = arguments.ConnectionSupervisionTimeoutMs; updateParams.SlaveLatency = arguments.SlaveLatency; masterEmulator.UpdateConnectionParameters(updateParams); }); }