lvjincheng 62108b268a 1 преди 3 години
..
Materials 62108b268a 1 преди 3 години
Scenes 62108b268a 1 преди 3 години
Scripts 62108b268a 1 преди 3 години
Arduino Unity Plugin.pdf 62108b268a 1 преди 3 години
Arduino Unity Plugin.pdf.meta 62108b268a 1 преди 3 години
Materials.meta 62108b268a 1 преди 3 години
Scenes.meta 62108b268a 1 преди 3 години
Scripts.meta 62108b268a 1 преди 3 години
changelogs.txt 62108b268a 1 преди 3 години
changelogs.txt.meta 62108b268a 1 преди 3 години
help.txt 62108b268a 1 преди 3 години
help.txt.meta 62108b268a 1 преди 3 години
readme.txt 62108b268a 1 преди 3 години
readme.txt.meta 62108b268a 1 преди 3 години
wiring.png 62108b268a 1 преди 3 години
wiring.png.meta 62108b268a 1 преди 3 години

readme.txt

If you are upgrading from version 5.3.1 or older to version 5.4.0 please note the following changes:


All BluetoothHelper class events now have BluetoothHelper as their 1st parameter.

this is for better support of connection to multiple instance,
for example, previously you would do:

bluetoothHelper.OnConnected += ()
{
//do something...
}


now you do :
bluetoothHelper.OnConnected += (helper)
{
//do something...
//inside this function, you now have a reference to the caller of that function!
}

the above is applicable for all events.
another exampler:

bluetoothHelper.OnCharacteristicChanged += OnCharacteristicChanged;

void OnCharacteristicChanged (BluetoothHelper helper, byte[] value, BluetoothHelperCharacteristic characteristic)
{
//do somthing
}

previously it was :
void OnCharacteristicChanged (byte[] value, BluetoothHelperCharacteristic characteristic)
{
//do somthing
}