Develop #10
@@ -128,8 +128,6 @@ namespace Util
|
|||||||
}
|
}
|
||||||
byte messageId = bytes[4];
|
byte messageId = bytes[4];
|
||||||
|
|
||||||
System.Diagnostics.Debug.WriteLine(Encoding.ASCII.GetString(bytes.Skip(5).ToArray()));
|
|
||||||
|
|
||||||
if (messageId == 0x01)
|
if (messageId == 0x01)
|
||||||
{
|
{
|
||||||
dynamic json = JsonConvert.DeserializeObject(Encoding.ASCII.GetString(bytes.Skip(5).ToArray()));
|
dynamic json = JsonConvert.DeserializeObject(Encoding.ASCII.GetString(bytes.Skip(5).ToArray()));
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ namespace Server
|
|||||||
else if (DataParser.isRawData(message))
|
else if (DataParser.isRawData(message))
|
||||||
{
|
{
|
||||||
// print the raw data
|
// print the raw data
|
||||||
Console.WriteLine(BitConverter.ToString(payloadbytes));
|
//Console.WriteLine(BitConverter.ToString(payloadbytes));
|
||||||
// TODO change, checking for length is not that safe
|
// TODO change, checking for length is not that safe
|
||||||
if (payloadbytes.Length == 8)
|
if (payloadbytes.Length == 8)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user