"用2字节表示消息Length,修正令牌协议不能收发超过255字节数据的BUG"

2字节不是高低位,与云端的消息机制不兼容。暂时改回
This commit is contained in:
cdyong 2015-11-13 01:31:00 +00:00
parent 2a2df5cd95
commit 256f366104
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ public:
byte Code; // 消息代码
byte Reply:1; // 是否响应指令
byte Error:1; // 是否错误
ushort Length; // 数据长度
byte Length; // 数据长度
byte* Data; // 数据。指向子类内部声明的缓冲区
void* State; // 其它状态数据