1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| package com.fzzy.gateway.api;
|
| import com.fzzy.gateway.entity.GatewayConf;
|
|
| public interface GatewayRemoteService {
|
| /**
| * 协议定义
| *
| * @return
| */
| String getProtocol();
|
|
| /**
| * 网关设备初始化
| *
| * @param gatewayConf
| */
| void init(GatewayConf gatewayConf);
|
| /**
| * 网关设备心跳维持
| *
| * @param gatewayConf
| */
| void heartbeat(GatewayConf gatewayConf);
|
|
| /**
| * 网关设备信息上报
| *
| * @param gatewayConf
| */
| void pushInfo(GatewayConf gatewayConf);
|
|
| /**
| * 获取当前网关下的设备列表,并上报设备状态
| *
| * @param gatewayConf
| */
| void pushDeviceStatus(GatewayConf gatewayConf);
|
| }
|
|