[ADD] update data in doctor applicatie

This commit is contained in:
shinichi
2020-10-29 23:32:47 +01:00
parent 9f7a01170b
commit d6cf5902da
4 changed files with 18 additions and 13 deletions

View File

@@ -298,7 +298,6 @@ namespace Util
private static byte[] GetRawDataDoctor(byte[] payload, string username, byte messageID)
{
Debug.WriteLine(BitConverter.ToString(Encoding.ASCII.GetBytes(username)));
byte[] nameArray = Encoding.ASCII.GetBytes(username);
byte[] total = new byte[nameArray.Length + payload.Length];
Array.Copy(payload, 0, total, 0, payload.Length);
@@ -422,7 +421,6 @@ namespace Util
/// <returns>the response of the message, so wether it was successful or not.</returns>
public static bool getResistanceFromResponseJson(byte[] json)
{
Debug.WriteLine("got message " + Encoding.ASCII.GetString(json));
return ((dynamic)JsonConvert.DeserializeObject(Encoding.ASCII.GetString(json))).data.worked;
}