Created
October 17, 2013 06:34
-
-
Save ahappyforest/7020016 to your computer and use it in GitHub Desktop.
蘑菇硬件与软件层协议
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Server 中心控制服务器 | |
Client 硬件底层 | |
Server -> Client | |
功能: | |
ID int 大端小端 | |
1. 打开/关闭 温度、湿度、光照(灯带)、二氧化碳浓度控制器 | |
2. 时间同步 | |
3. 重启命令 | |
4. 配置参数 | |
Client -> Server | |
1. 发送传感器(温度、湿度、光照(灯带)、二氧化碳浓度)数据 | |
2. 时间同步 | |
3. 发送系统错误信息 | |
4. 心跳包 | |
设计消息协议时候 拆开 | |
Server 线程池 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment