public interface IMqttClient
限定符和类型 | 方法和说明 |
---|---|
void |
publish(ARequest request,
IConnectSendListener listener)
发布
|
void |
registerResource(AResource resource,
IResourceRequestListener listener)
RRPC 接口
1.先订阅下行的 topic
2.云端通过该 topic 下行,发送指令;
3.收到数据并相应。
|
void |
subscribe(ARequest request,
IConnectSubscribeListener listener)
订阅
|
void |
unsubscribe(ARequest request,
IConnectUnscribeListener listener)
取消订阅
|
void publish(ARequest request, IConnectSendListener listener)
request
- 发布请求listener
- 监听器void subscribe(ARequest request, IConnectSubscribeListener listener)
request
- 订阅的 requestlistener
- 监听器void unsubscribe(ARequest request, IConnectUnscribeListener listener)
request
- 取消订阅的 requestlistener
- 监听器void registerResource(AResource resource, IResourceRequestListener listener)
resource
- 订阅的 resourcelistener
- 监听器