-
public interface IThingSingleTransfer
-
-
Method Summary
Modifier and Type Method Description abstract void
startConnect()
Connect witch mqtt server. abstract boolean
isOnline()
Whether MQTT is connected to server. abstract void
subscribeDevice(String devId)
Subscribe device to MQTT server. abstract void
subscribeDevice(String devId, IResultCallback callback)
Subscribe device to MQTT server. abstract void
unSubscribeDevice(String devId)
Unsubscribe device to MQTT server. abstract void
unSubscribeDevice(String devId, IResultCallback callback)
Unsubscribe device to MQTT server. abstract void
registerTransferDataListener(IThingDataCallback<TransferDataBean> callback)
Register transfer data callback. abstract void
unRegisterTransferDataListener(IThingDataCallback<TransferDataBean> callback)
Unregister transfer data callback. abstract void
registerTransferCallback(IThingTransferCallback callback)
Register mqtt connect status callback. abstract void
unRegisterTransferCallback(IThingTransferCallback callback)
Unregister mqtt connect status callback. abstract void
stopConnect()
Clear all listener. -
-
Method Detail
-
startConnect
abstract void startConnect()
Connect witch mqtt server.
-
isOnline
abstract boolean isOnline()
Whether MQTT is connected to server.
-
subscribeDevice
abstract void subscribeDevice(String devId)
Subscribe device to MQTT server.
- Parameters:
devId
- device id.
-
subscribeDevice
abstract void subscribeDevice(String devId, IResultCallback callback)
Subscribe device to MQTT server.
- Parameters:
devId
- device id.callback
- subscribe callback
-
unSubscribeDevice
abstract void unSubscribeDevice(String devId)
Unsubscribe device to MQTT server.
- Parameters:
devId
- device id.
-
unSubscribeDevice
abstract void unSubscribeDevice(String devId, IResultCallback callback)
Unsubscribe device to MQTT server.
- Parameters:
devId
- device id.callback
- unSubscribe callback
-
registerTransferDataListener
abstract void registerTransferDataListener(IThingDataCallback<TransferDataBean> callback)
Register transfer data callback.
- Parameters:
callback
- Callback TransferDataBean
-
unRegisterTransferDataListener
abstract void unRegisterTransferDataListener(IThingDataCallback<TransferDataBean> callback)
Unregister transfer data callback.
- Parameters:
callback
- Callback TransferDataBean
-
registerTransferCallback
abstract void registerTransferCallback(IThingTransferCallback callback)
Register mqtt connect status callback.
- Parameters:
callback
- Callback mqtt connect status.
-
unRegisterTransferCallback
abstract void unRegisterTransferCallback(IThingTransferCallback callback)
Unregister mqtt connect status callback.
- Parameters:
callback
- Callback mqtt connect status.
-
stopConnect
abstract void stopConnect()
Clear all listener.
-
-
-
-