|
|
@@ -37,6 +37,7 @@ public class ShootCheck : MonoBehaviour
|
|
|
//socket
|
|
|
string ipStr = ipInputField.text;//ipInputField.GetComponentInChildren<Text>();
|
|
|
string serverIP = ipStr;//"192.168.0.107";
|
|
|
+ // serverIP = "192.168.0.103";
|
|
|
string address = "ws://" + serverIP + ":8088/Ble/";
|
|
|
webSocket = new WebSocket(new Uri(address));
|
|
|
#if !UNITY_WEBGL
|
|
|
@@ -140,6 +141,7 @@ public class ShootCheck : MonoBehaviour
|
|
|
{
|
|
|
int value = TwoByteToInt(b1, b2);
|
|
|
return (float)value / 32768 * 16;
|
|
|
+ // return (float)value;
|
|
|
}
|
|
|
|
|
|
int TwoByteToInt(byte b1, byte b2)
|