diff --git a/ClientApp/ClientApp.csproj b/ClientApp/ClientApp.csproj
index 637f86c..13750b2 100644
--- a/ClientApp/ClientApp.csproj
+++ b/ClientApp/ClientApp.csproj
@@ -7,6 +7,14 @@
Images\Logo\icon1.ico
+
+ true
+
+
+
+ true
+
+
diff --git a/ClientApp/Utils/Client.cs b/ClientApp/Utils/Client.cs
index 69f9f1b..bebc366 100644
--- a/ClientApp/Utils/Client.cs
+++ b/ClientApp/Utils/Client.cs
@@ -164,10 +164,10 @@ namespace ClientApp.Utils
break;
}
}
- else if (DataParser.isRawData(messageBytes))
+ /*else if (DataParser.isRawData(messageBytes))
{
Console.WriteLine($"Received data: {BitConverter.ToString(payloadbytes)}");
- }
+ }*/
totalBufferReceived -= expectedMessageLength;
expectedMessageLength = BitConverter.ToInt32(totalBuffer, 0);
@@ -211,7 +211,7 @@ namespace ClientApp.Utils
{
throw new ArgumentNullException("no bytes");
}
- byte[] message = DataParser.GetRawDataMessage(bytes);
+ byte[] message = DataParser.GetRawBPMDataMessageServer(bytes);
if (engineConnection.Connected && engineConnection.FollowingRoute)
{
@@ -238,7 +238,7 @@ namespace ClientApp.Utils
{
throw new ArgumentNullException("no bytes");
}
- byte[] message = DataParser.GetRawDataMessage(bytes);
+ byte[] message = DataParser.GetRawBikeDataMessageServer(bytes);
bool canSendToEngine = engineConnection.Connected && engineConnection.FollowingRoute;
switch (bytes[0])
{
diff --git a/DoctorApp/ViewModels/ClientInfoViewModel.cs b/DoctorApp/ViewModels/ClientInfoViewModel.cs
index faccc0a..d186d78 100644
--- a/DoctorApp/ViewModels/ClientInfoViewModel.cs
+++ b/DoctorApp/ViewModels/ClientInfoViewModel.cs
@@ -19,11 +19,11 @@ namespace DoctorApp.ViewModels
public string Status { get; set; }
- public int Speed { get; set; }
+ public double Speed { get; set; }
public int BPM { get; set; }
- public int Resistance { get; set; }
+ public float Resistance { get; set; }
public int Acc_Power { get; set; }
public int Curr_Power { get; set; }
@@ -71,7 +71,8 @@ namespace DoctorApp.ViewModels
SetResistance = new RelayCommand