Cortex-M3是小端字节序,标准封包最高位的Reply应该放在后面
This commit is contained in:
parent
97a2303c2f
commit
068cd8d7d1
|
@ -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);
|
||||
|
||||
// 外部公共消息事件
|
||||
|
|
|
@ -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; // 长度
|
||||
|
||||
|
|
Loading…
Reference in New Issue