From 160a425c85f128ed47f92aa15c7eb6f76d68610a Mon Sep 17 00:00:00 2001
From: gongshangguo <gongshangguo@admin.com>
Date: 星期一, 28 二月 2022 17:26:10 +0800
Subject: [PATCH] 回复register
---
server/callback.go | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/server/callback.go b/server/callback.go
index 1aae81c..92e8aa9 100644
--- a/server/callback.go
+++ b/server/callback.go
@@ -7,18 +7,18 @@
// 鍥炶皟鎺ュ彛
type ServerCallBack interface {
+ // 鏀跺埌蹇冭烦
+ OnHeartBeat (c *client.Client, msg *aiot.Protocol)
+ // 璁惧娉ㄥ唽
+ OnRegister (c *client.Client, msg *aiot.Protocol)
// 鏀跺埌璇锋眰
OnRequest (c *client.Client, msg *aiot.Protocol)
// 鏀跺埌鍝嶅簲
OnResponse (c *client.Client, msg *aiot.Protocol)
- // 璁惧娉ㄥ唽
- OnRegister (c *client.Client, msg *aiot.Protocol)
- // 鏀跺埌蹇冭烦
- OnHeartBeat (c *client.Client, msg *aiot.Protocol)
- // 閫氶亾鍏抽棴
- OnClose (c *client.Client)
// 鏁版嵁涓婃姤
OnDataReport (c *client.Client, msg *aiot.Protocol)
// 璁惧鎺у埗
OnDeviceControl(c *client.Client, msg *aiot.Protocol)
+ // 閫氶亾鍏抽棴
+ OnClose (c *client.Client)
}
\ No newline at end of file
--
Gitblit v1.8.0