Cortex-M3是小端字节序,标准封包最高位的Reply应该放在后面

This commit is contained in:
大石头 2017-08-27 00:48:21 +08:00
parent 97a2303c2f
commit 068cd8d7d1
2 changed files with 4 additions and 4 deletions

View File

@ -158,9 +158,9 @@ void LinkClient::OnReceive(LinkMessage& msg)
auto act = js["action"].AsString();
if (act == "login")
if (act == "Device/Login")
OnLogin(msg);
else if (act == "ping")
else if (act == "Device/Ping")
OnLogin(msg);
// 外部公共消息事件

View File

@ -10,9 +10,9 @@
struct LinkMessage
{
public:
byte Reply : 1; // 是否响应
byte Error : 1; // 是否错误
byte Code : 6; // 代码
byte Error : 1; // 是否错误
byte Reply : 1; // 是否响应
byte Seq; // 序列号
ushort Length; // 长度