diff --git a/Assets/Plugins/Android/Runtime/Data/BleDeviceDataEvents.cs b/Assets/Plugins/Android/Runtime/Data/BleDeviceDataEvents.cs index c888a4c..9fa1b61 100644 --- a/Assets/Plugins/Android/Runtime/Data/BleDeviceDataEvents.cs +++ b/Assets/Plugins/Android/Runtime/Data/BleDeviceDataEvents.cs @@ -18,7 +18,7 @@ public class BleDeviceDataEvents Action writeCharacteristicAct; Action notifiedCharacteristicAct; Action unsubscribeAct; - + public void SetReadAct(Action act) { this.readChracteristicAct = act; @@ -47,18 +47,18 @@ public void CallWrite(string service,string characteristic) public void SetNotifyAct(Action act) { - this.readChracteristicAct = act; + this.notifiedCharacteristicAct = act; } public void RemoveNotifyAct() { - this.readChracteristicAct = null; + this.notifiedCharacteristicAct = null; } public void CallNotify(string service,string characteristic,byte [] data) { - if (this.readChracteristicAct != null) + if (this.notifiedCharacteristicAct != null) { - this.readChracteristicAct(service, characteristic, data); + this.notifiedCharacteristicAct(service, characteristic, data); } }