private static void onUpdateValueCallback(IntPtr characteristic, IntPtr data, long length)
        {
            UnityCBCharacteristic c = new UnityCBCharacteristic(characteristic);

            byte[] result = new byte[length];
            Marshal.Copy(data, result, 0, (int)length);
            UnityCoreBluetooth.onUpdateValueHandler(c, result);
        }
Beispiel #2
0
        private static void onDiscoverCharacteristicCallback(IntPtr characteristic)
        {
            UnityCBCharacteristic c = new UnityCBCharacteristic(characteristic);

            UnityCoreBluetooth.onDiscoverCharacteristicHandler(c);
        }