slambb 2 lat temu
rodzic
commit
c182401881

+ 8 - 0
Assets/BluetoothAPI.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 4475bd55c28d6d348af6e665490358e1
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/BluetoothAPI/Arduino Unity Plugin.pdf


+ 7 - 0
Assets/BluetoothAPI/Arduino Unity Plugin.pdf.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: ed79cf528c26f4756b9db107d2d8fc56
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 8 - 0
Assets/BluetoothAPI/Materials.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 8808e947f00534b8fb431e2647609b89
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 76 - 0
Assets/BluetoothAPI/Materials/Black.mat

@@ -0,0 +1,76 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+  serializedVersion: 6
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInternal: {fileID: 0}
+  m_Name: Black
+  m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+  m_ShaderKeywords: 
+  m_LightmapFlags: 4
+  m_EnableInstancingVariants: 0
+  m_DoubleSidedGI: 0
+  m_CustomRenderQueue: -1
+  stringTagMap: {}
+  disabledShaderPasses: []
+  m_SavedProperties:
+    serializedVersion: 3
+    m_TexEnvs:
+    - _BumpMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailAlbedoMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailMask:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailNormalMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _EmissionMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _MainTex:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _MetallicGlossMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _OcclusionMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _ParallaxMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    m_Floats:
+    - _BumpScale: 1
+    - _Cutoff: 0.5
+    - _DetailNormalMapScale: 1
+    - _DstBlend: 0
+    - _GlossMapScale: 1
+    - _Glossiness: 0.5
+    - _GlossyReflections: 1
+    - _Metallic: 0
+    - _Mode: 0
+    - _OcclusionStrength: 1
+    - _Parallax: 0.02
+    - _SmoothnessTextureChannel: 0
+    - _SpecularHighlights: 1
+    - _SrcBlend: 1
+    - _UVSec: 0
+    - _ZWrite: 1
+    m_Colors:
+    - _Color: {r: 0, g: 0, b: 0, a: 1}
+    - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 8 - 0
Assets/BluetoothAPI/Materials/Black.mat.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 70c183e01375c4ccda2727ae833845d4
+NativeFormatImporter:
+  externalObjects: {}
+  mainObjectFileID: 2100000
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 77 - 0
Assets/BluetoothAPI/Materials/DarkRed.mat

@@ -0,0 +1,77 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+  serializedVersion: 6
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_Name: DarkRed
+  m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+  m_ShaderKeywords: 
+  m_LightmapFlags: 4
+  m_EnableInstancingVariants: 0
+  m_DoubleSidedGI: 0
+  m_CustomRenderQueue: -1
+  stringTagMap: {}
+  disabledShaderPasses: []
+  m_SavedProperties:
+    serializedVersion: 3
+    m_TexEnvs:
+    - _BumpMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailAlbedoMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailMask:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailNormalMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _EmissionMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _MainTex:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _MetallicGlossMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _OcclusionMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _ParallaxMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    m_Floats:
+    - _BumpScale: 1
+    - _Cutoff: 0.5
+    - _DetailNormalMapScale: 1
+    - _DstBlend: 0
+    - _GlossMapScale: 1
+    - _Glossiness: 0.5
+    - _GlossyReflections: 1
+    - _Metallic: 0
+    - _Mode: 0
+    - _OcclusionStrength: 1
+    - _Parallax: 0.02
+    - _SmoothnessTextureChannel: 0
+    - _SpecularHighlights: 1
+    - _SrcBlend: 1
+    - _UVSec: 0
+    - _ZWrite: 1
+    m_Colors:
+    - _Color: {r: 0.3962264, g: 0.057938762, b: 0.057938762, a: 1}
+    - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 8 - 0
Assets/BluetoothAPI/Materials/DarkRed.mat.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 00cd1f87cd696467d9d31e7b59cd8b29
+NativeFormatImporter:
+  externalObjects: {}
+  mainObjectFileID: 2100000
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 77 - 0
Assets/BluetoothAPI/Materials/Red.mat

@@ -0,0 +1,77 @@
+%YAML 1.1
+%TAG !u! tag:unity3d.com,2011:
+--- !u!21 &2100000
+Material:
+  serializedVersion: 6
+  m_ObjectHideFlags: 0
+  m_CorrespondingSourceObject: {fileID: 0}
+  m_PrefabInstance: {fileID: 0}
+  m_PrefabAsset: {fileID: 0}
+  m_Name: Red
+  m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
+  m_ShaderKeywords: 
+  m_LightmapFlags: 4
+  m_EnableInstancingVariants: 0
+  m_DoubleSidedGI: 0
+  m_CustomRenderQueue: -1
+  stringTagMap: {}
+  disabledShaderPasses: []
+  m_SavedProperties:
+    serializedVersion: 3
+    m_TexEnvs:
+    - _BumpMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailAlbedoMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailMask:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _DetailNormalMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _EmissionMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _MainTex:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _MetallicGlossMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _OcclusionMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    - _ParallaxMap:
+        m_Texture: {fileID: 0}
+        m_Scale: {x: 1, y: 1}
+        m_Offset: {x: 0, y: 0}
+    m_Floats:
+    - _BumpScale: 1
+    - _Cutoff: 0.5
+    - _DetailNormalMapScale: 1
+    - _DstBlend: 0
+    - _GlossMapScale: 1
+    - _Glossiness: 0.5
+    - _GlossyReflections: 1
+    - _Metallic: 0
+    - _Mode: 0
+    - _OcclusionStrength: 1
+    - _Parallax: 0.02
+    - _SmoothnessTextureChannel: 0
+    - _SpecularHighlights: 1
+    - _SrcBlend: 1
+    - _UVSec: 0
+    - _ZWrite: 1
+    m_Colors:
+    - _Color: {r: 0.9150943, g: 0.13381095, b: 0.13381095, a: 1}
+    - _EmissionColor: {r: 0, g: 0, b: 0, a: 1}

+ 8 - 0
Assets/BluetoothAPI/Materials/Red.mat.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 6067540c39a154e83a88a02fafdf4e38
+NativeFormatImporter:
+  externalObjects: {}
+  mainObjectFileID: 2100000
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 8 - 0
Assets/BluetoothAPI/Plugins.meta

@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: cf2f82ac557414e67b407caf6584635c
+folderAsset: yes
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 9 - 0
Assets/BluetoothAPI/Scripts.meta

@@ -0,0 +1,9 @@
+fileFormatVersion: 2
+guid: c6851ebcb256a4e9d81792c27c58e784
+folderAsset: yes
+timeCreated: 1503991085
+licenseType: Store
+DefaultImporter:
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 27 - 0
Assets/BluetoothAPI/Scripts/arduino_char_terminator.ino

@@ -0,0 +1,27 @@
+//Connect TX pin of the HC-05 to RX pin of the Arduino
+//Connect RX pin of the HC-05 to TX pin of the Arduino
+//You can use SoftwareSerial Library, but i dont recommend it for fast and long data transmission
+//Otherwise you have to check Serial.available() > excepted number of bytes sent before reading the message
+//There's no problem with hardware serial that comes with the arduino. It's perfect
+//
+void setup()
+{
+	Serial.begin(9600);
+}
+
+void loop()
+{
+	if (Serial.available() > 0)
+	{
+		Serial.print("You Wrote : ");
+		Serial.flush();
+		while (Serial.available() > 0)
+		{
+			Serial.write((char)Serial.read());
+			Serial.flush(); //this is a must for the arduino to wait untill Serial.write is done
+		}
+	}
+
+	delay(100);
+	Serial.println("Send here any text");
+}

+ 7 - 0
Assets/BluetoothAPI/Scripts/arduino_char_terminator.ino.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: a1412612349364e7081f5102076f63a2
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 61 - 0
Assets/BluetoothAPI/Scripts/arduino_length_based_mode.ino

@@ -0,0 +1,61 @@
+#include <SoftwareSerial.h>
+
+SoftwareSerial BTSerial(10, 11); // RX, TX
+
+void sendBT(const char *data, int l)
+{
+    char *tx_data = new byte[l + 4];
+    tx_data[0] = 85; //preamble
+    tx_data[1] = 85; //preamble
+    tx_data[2] = (l >> 8) & 0x000000FF;
+    tx_data[3] = (l & 0x000000FF);
+    memcpy(tx_data+4, data, l);
+    BTSerial.write(tx_data, l + 4);
+    BTSerial.flush();
+    delete [] tx_data;
+}
+
+void setup()
+{
+	BTSerial.begin(9600);
+}
+
+char *data;
+int data_length;
+int i = 0;
+void loop()
+{
+	if (BTSerial.available() > 2)
+	{
+		data_length = 0;
+		char p1 = BTSerial.read();
+		char p2 = BTSerial.read();
+		if(p1 != 85 || p2 != 85) return;
+		while(BTSerial.available() < 2) continue;
+		char x1 = BTSerial.read();
+		char x2 = BTSerial.read();
+		data_length = x1 << 8 | x2;
+		data = new char[data_length];
+		i = 0;
+		while (i < data_length)
+		{
+			if (BTSerial.available() == 0)
+				continue;
+
+			data[i++] = BTSerial.read();
+		}
+
+		sendBT(data, data_length);
+
+		delete[] data;
+	}
+
+	delay(100);
+	sendBT("HELLOO", 6);
+}
+
+//PS char or byte ranges are -127 to 128, it you want to use 0 255 range for your binary data, simply cast it as unisgned char
+// example:
+// byte x = 129;
+// if(x == 129) will return false
+// if((unsigned char) x == 129 ) will return true

+ 7 - 0
Assets/BluetoothAPI/Scripts/arduino_length_based_mode.ino.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: dbc1dfde8eb7d47e08f1cabfd699a8e0
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 17 - 0
Assets/BluetoothAPI/Scripts/basic.ino

@@ -0,0 +1,17 @@
+#include <SoftwareSerial.h>
+
+SoftwareSerial mySerial(10, 11); // RX, TX
+
+void setup() {
+  Serial.begin(9600);
+  mySerial.begin(9600);
+}
+
+void loop()
+{
+  if (mySerial.available())
+    Serial.write(mySerial.read());
+
+  if (Serial.available())
+    mySerial.write(Serial.read());
+}

+ 7 - 0
Assets/BluetoothAPI/Scripts/basic.ino.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 0644f4d68f26146a39563ea41c35128e
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 27 - 0
Assets/BluetoothAPI/Scripts/led_on_off.ino

@@ -0,0 +1,27 @@
+#include <SoftwareSerial.h>
+
+SoftwareSerial mySerial(10, 11); // RX, TX
+
+void setup() {
+  mySerial.begin(9600);
+  pinMode(13, OUTPUT);
+}
+
+String data = "";
+
+void loop()
+{
+    if (mySerial.available()) 
+    {
+        data = mySerial.readStringUntil('\n');
+        if(data == "O")
+        {
+            digitalWrite(13, HIGH);
+        }else if(data == "F")
+        {
+            digitalWrite(13, LOW);
+        }
+    }
+
+    delay(10);
+}

+ 7 - 0
Assets/BluetoothAPI/Scripts/led_on_off.ino.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 6b3b5814659b34e96b8b186dbcd2ea1e
+DefaultImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 89 - 0
Assets/BluetoothAPI/changelogs.txt

@@ -0,0 +1,89 @@
++ 5.4.5
+    - Fix bug on iOS and macOS causing app crash
++ 5.4.4
+    - RSSI value available when scanning for devices
+    - Fix bug causing OnConnectionFailed event for fired on MacOS and iOS
++ 5.4.3
+    - Minor Changes
++ 5.4.2
+    - Improvement for multi-device connection on macos and ios
+    - fix compilation problem for ios and native android
+    - misc minor bug fixes
++ 5.4.1
+    - Support for BLE on Android 10
++ 5.4.0
+    - Fix bug in android causing all bluetooth instances to disconnect if one gets disconnected
+    - Allow to use BLE inside Unity editor during development
+    - Minor improvements
++ 5.3.1
+    - fix for windows platform causing unity to hang
+    - bug fix for android causing previously found devices to appears in the next scan even when not available.
++ 5.3.0
+    - ability to implement custom Stream Manager
+    - performance improvements on android
+    - bug fixed for all platforms causing empty scan results afteer disconnection
+    - add getGattServices function to return peripheral gatt services list.
++ 5.2.2
+    - minor improvements for ios
+    - fix bug with terminator based stream for all platforms
++ 5.2.1
+    - fix bug in android
+    - fix bug on mac and ios causing not invoking connected after disconnecting
+    - additional demo scene
++ 5.2.0
+    - Ability to connect to multiple bluetooth devices, simply call GetNewInstance to get a new bluetoothHelper object
+    - setTxCharacteristic and setRxCharacteristic, two functions added to define in and out characteristic for BLE in case
+        you need to use provided stream managers
+    - getPairedDevicesList function used to get all paired devices
++ 5.1.5
+    - Fix editor crashing occasionally on macos
+    - Enhanced compatibility for BLE for app platforms
++ 5.1.4
+    - Fix bug causing \0 to append to all terminator based sent messages starting version 5.1.2 affecting all platforms
+    - Improvements for UWP.
++ 5.1.3
+    - Fix bug found in latest version prefenting macos and ios from receiving data
+    - Enhancements for multiscene functionalities
++ 5.1.2
+    - Urgent update for all platforms
++ 5.1.1
+    - Fix problem on android causing the inability to subscribe to multiple characteristics
+    - Minor changes for better performance
++ 5.1.0
+    - Add support for sending/receiving messages with custom gatt services, characteristic for BLE on UWP
++ 5.0.4
+    -Fix bug causing unity app/editor to crash on ios/macos
++ 5.0.3
+    - add read characteristic feature
++ 5.0.2
+    - MacOS and iOS not sending Data
++ 5.0.1
+    - Fixed unexpected behaviour for iOS.
++ 5.00
+    - Add support for sending/receiving messages with custom gatt services, characteristic for BLE (Android, MacOS and iOS)
+    - Fix various bugs.
+    - support for custom gatt characteristics for UWP very soon
++ 4.85
+    - Fix bug resulting problems when using the plugin across multiple scenes on Android
++ 4.8
+    - Fix bug resulting problems when using the plugin across multiple scenes
++ 4.7
+    - Fix bug affecting binary data transmission in presence of null byte.
+    - Add ReadBytes method.
++ 4.6
+    - Add IsBluetoothEnabled method for Android, iOS, MacOS to test is bluetooth is turned on.
+    - Add EnableBluetooth method for Android to turn ON/OFF bluetooth.
++ 4.5
+    - Fix bug affection iOS and MasOS : duplicate results when scanning multiple times.
++ 4.4
+    - Fix bug resulting distinct messages being concatenated affecting some Android, iOS and MacOS users.
++ 4.3.1
+    - Add fix for a bug on Android version occurring with some bluetooth modules.
++ 4.3
+    - Add support for Bluetooth Classic for UWP.
+    - Add new stream mode FixedLengthStream.
++ 4.2.6
+    - Fix (Library not imported) on MacOS.
++ 4.0
+    - isDeviceFound is now isDevicePaired.
+    - stopListening is now Disconnect.

+ 7 - 0
Assets/BluetoothAPI/changelogs.txt.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: c947feb6ac9714693bedbe1cd9ab831c
+TextScriptImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 44 - 0
Assets/BluetoothAPI/help.txt

@@ -0,0 +1,44 @@
+Hello guys,
+
+This plugin will help you connect your unity game/app to your arduino robot/project,
+to controll it, transfer data between the arduino and bluetooth enabled android.
+
+This plugin has been tested with HC-05/06 modules
+
+A tutorial is also provided in the plugin to help you use the code.
+
+The manager.cs script - located in the Scripts folder - is an example of a well structured example on how to use this plugin.
+
+In case of any troubles, sent me an email to abouzaidan.tony@gmail.com so i can assist you.
+
+Thank you!
+
+
+PS
+
+MOVE THE PLUGIN FOLDER TO THE ASSET FOLDER 
+
++ASSETS
+++BluetoothAPI
++++Plugins
++++Scene
++++Scripts
+
+TO
+
++ASSETS
+++Plugins
+++BluetoothAPI
++++Scene
++++Scripts
+
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+!!! !!!!!!!!!!!! !       !!    !!! !!! !! !! !!! !!!    !!!!!!!!!!!!!!!!!!
+!!!! !!!!!!!!!! !! !!!!! !! !!! !!  !! !! !!  !! !! !!!!!!!!!!!!!!!!!!!!!!
+!!!!! !!! !!!! !!! !!!!! !!    !!! ! ! !! !! ! ! !! !!  !!!!!!!!!!!!!!!!!!
+!!!!!! ! !! ! !!!!       !! ! !!!! !!  !! !! !!  !! !!!! !!!!!!!!!!!!!!!!!
+!!!!!!! !!!! !!!!! !!!!! !! !! !!! !!! !! !! !!! !!!    !!!!!!!!!!!!!!!!!!
+!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+IF YOU ARE UPDATING TO THIS NEW VERSION FROM VERSION 1.0, MAKE SURE TO DELETE 2 DLL FILES.
+THE 1ST ONE IS : Plugins/UnityBluetoothAPI.dll
+THE 2ND ONE IS : Plugins/Android/UnityBluetoothAPI.dll

+ 7 - 0
Assets/BluetoothAPI/help.txt.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 4dcefa11f39124cd6bf457fbe1dc5a9d
+TextScriptImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

+ 36 - 0
Assets/BluetoothAPI/readme.txt

@@ -0,0 +1,36 @@
+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
+}

+ 7 - 0
Assets/BluetoothAPI/readme.txt.meta

@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: c7d92072138c24f038e0c2c1103f0a05
+TextScriptImporter:
+  externalObjects: {}
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: 

BIN
Assets/BluetoothAPI/wiring.png


+ 88 - 0
Assets/BluetoothAPI/wiring.png.meta

@@ -0,0 +1,88 @@
+fileFormatVersion: 2
+guid: fb8d04bd57cda42f2bac75f06ab65181
+TextureImporter:
+  fileIDToRecycleName: {}
+  externalObjects: {}
+  serializedVersion: 7
+  mipmaps:
+    mipMapMode: 0
+    enableMipMap: 1
+    sRGBTexture: 1
+    linearTexture: 0
+    fadeOut: 0
+    borderMipMap: 0
+    mipMapsPreserveCoverage: 0
+    alphaTestReferenceValue: 0.5
+    mipMapFadeDistanceStart: 1
+    mipMapFadeDistanceEnd: 3
+  bumpmap:
+    convertToNormalMap: 0
+    externalNormalMap: 0
+    heightScale: 0.25
+    normalMapFilter: 0
+  isReadable: 0
+  streamingMipmaps: 0
+  streamingMipmapsPriority: 0
+  grayScaleToAlpha: 0
+  generateCubemap: 6
+  cubemapConvolution: 0
+  seamlessCubemap: 0
+  textureFormat: 1
+  maxTextureSize: 2048
+  textureSettings:
+    serializedVersion: 2
+    filterMode: -1
+    aniso: -1
+    mipBias: -100
+    wrapU: -1
+    wrapV: -1
+    wrapW: -1
+  nPOTScale: 1
+  lightmap: 0
+  compressionQuality: 50
+  spriteMode: 0
+  spriteExtrude: 1
+  spriteMeshType: 1
+  alignment: 0
+  spritePivot: {x: 0.5, y: 0.5}
+  spritePixelsToUnits: 100
+  spriteBorder: {x: 0, y: 0, z: 0, w: 0}
+  spriteGenerateFallbackPhysicsShape: 1
+  alphaUsage: 1
+  alphaIsTransparency: 0
+  spriteTessellationDetail: -1
+  textureType: 0
+  textureShape: 1
+  singleChannelComponent: 0
+  maxTextureSizeSet: 0
+  compressionQualitySet: 0
+  textureFormatSet: 0
+  platformSettings:
+  - serializedVersion: 2
+    buildTarget: DefaultTexturePlatform
+    maxTextureSize: 2048
+    resizeAlgorithm: 0
+    textureFormat: -1
+    textureCompression: 1
+    compressionQuality: 50
+    crunchedCompression: 0
+    allowsAlphaSplitting: 0
+    overridden: 0
+    androidETC2FallbackOverride: 0
+  spriteSheet:
+    serializedVersion: 2
+    sprites: []
+    outline: []
+    physicsShape: []
+    bones: []
+    spriteID: 
+    vertices: []
+    indices: 
+    edges: []
+    weights: []
+  spritePackingTag: 
+  pSDRemoveMatte: 0
+  pSDShowRemoveMatteOption: 0
+  userData: 
+  assetBundleName: 
+  assetBundleVariant: