public interface ISubDeviceChannel
限定符和类型 | 方法和说明 |
---|---|
SubDeviceInfo |
getSubDeviceInfo()
获取当前子设备信息
|
void |
offline(ISubDeviceActionListener listener)
子设备下线
|
void |
online(ISubDeviceActionListener listener)
子设备上线
|
void |
setDeleteListener(IConnectRrpcListener listener)
设置子设备删除监听器
|
void |
setDisableListener(IConnectRrpcListener listener)
设置子设备禁用监听器
|
void |
subscribe(java.lang.String topic,
ISubDeviceActionListener listener)
子设备订阅Topic,订阅后的数据会在 ISubDeviceConnectListener 的 onDataPush 接口返回。
|
void |
unSubscribe(java.lang.String topic,
ISubDeviceActionListener listener)
子设备取消订阅 topic
|
void |
uploadData(java.lang.String topic,
java.lang.String data,
ISubDeviceActionListener listener)
子设备上报
|
void online(ISubDeviceActionListener listener)
listener
- 监听器void offline(ISubDeviceActionListener listener)
listener
- 监听器void setDisableListener(IConnectRrpcListener listener)
listener
- 监听器void setDeleteListener(IConnectRrpcListener listener)
listener
- 监听器void uploadData(java.lang.String topic, java.lang.String data, ISubDeviceActionListener listener)
topic
- 发布 topicdata
- 发布 datalistener
- 监听器void subscribe(java.lang.String topic, ISubDeviceActionListener listener)
topic
- 订阅 topiclistener
- 监听器void unSubscribe(java.lang.String topic, ISubDeviceActionListener listener)
topic
- 取消订阅 topiclistener
- 监听器SubDeviceInfo getSubDeviceInfo()