connecting to doctor after works

This commit is contained in:
shinichi
2020-10-16 12:18:03 +02:00
parent ac11f6c53b
commit 9ef51ddeca
4 changed files with 44 additions and 18 deletions

View File

@@ -128,6 +128,8 @@ namespace Util
}
byte messageId = bytes[4];
System.Diagnostics.Debug.WriteLine(Encoding.ASCII.GetString(bytes.Skip(5).ToArray()));
if (messageId == 0x01)
{
dynamic json = JsonConvert.DeserializeObject(Encoding.ASCII.GetString(bytes.Skip(5).ToArray()));
@@ -225,6 +227,8 @@ namespace Util
public static byte[] getNewConnectionJson(string user)
{
if (user == null)
throw new ArgumentNullException("user null");
dynamic data = new
{
username = user