diff --git a/Assets/CoreBluetooth/Samples/01_LightControl/SampleLightControl_Peripheral.cs b/Assets/CoreBluetooth/Samples/01_LightControl/SampleLightControl_Peripheral.cs index c152fc9..e277831 100644 --- a/Assets/CoreBluetooth/Samples/01_LightControl/SampleLightControl_Peripheral.cs +++ b/Assets/CoreBluetooth/Samples/01_LightControl/SampleLightControl_Peripheral.cs @@ -85,13 +85,13 @@ void ICBPeripheralManagerDelegate.DidReceiveWriteRequests(CBPeripheralManager pe { if (request.Characteristic.UUID != SampleLightControl_Data.LightControlCharacteristicUUID) { - peripheral.RespondToRequest(request, CBATTError.RequestNotSupported); + peripheral.RespondToRequest(firstRequest, CBATTError.RequestNotSupported); return; } if (request.Value.Length != 7) { - peripheral.RespondToRequest(request, CBATTError.InvalidAttributeValueLength); + peripheral.RespondToRequest(firstRequest, CBATTError.InvalidAttributeValueLength); return; } }