-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
51c2572
commit b075760
Showing
1 changed file
with
14 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# Dc1Server | ||
Dc1Server | ||
|
||
项目Fork自ZXQ-Kyle/Dc1Server | ||
|
||
DC1插座复活的服务器端 | ||
|
||
修改了如下: | ||
1.查询间隔由1分钟改为5秒,以便于实时观察功率变化,会增加网络传输 | ||
2.将ConnectionManager中的mDeviceConnectionMap的key由ip改为ip+port,以解决将server部署到云服务器,同一路由器下的DC1 ip相同,mDeviceConnectionMap覆盖重复查询问题 | ||
3.新增心跳检测,15秒未通讯关闭channel | ||
4.关闭channel时,将DC1 online置为false,以便客户端显示离线状态 | ||
|
||
感谢原作者. |