-
public interface IThingBleController
-
-
Method Summary
Modifier and Type Method Description abstract void
activator(BleControllerBean bleControllerBean)
Start activator abstract void
activator(BatchBeaconActivatorBean bleControllerBean, ActivateBLEDeviceListener listener)
abstract void
stopActivator(String uuid)
Stop activator abstract void
preConnect(BleControllerBean bleControllerBean)
Start Pre Connect abstract void
registerMultiModeDevStatusListener(String uuid, OnBleMultiModeDevStatusListener listener)
Register BleMultiModeDevStatus abstract void
unregisterMultiModeDevStatusListener(String uuid, OnBleMultiModeDevStatusListener listener)
Unregister BleMultiModeDevStatus abstract void
sendChannel(String uuid, int type, Map<String, Object> param, OnBleSendChannelListener listener)
Send the channel abstract void
revChannel(String uuid, int type, Map<String, Object> param, OnBleRevChannelListener listener)
In the channel for data abstract void
updateControllerBean(String uuid, BleControllerUpdateBean bean)
Update ControllerBean abstract void
disconnectDevice(String uuid)
Disconnect device abstract void
registerBleConnectStatusChange(String uuid, OnBleConnectStatusListener listener)
abstract void
unregisterBleConnectStatusChange(String uuid, OnBleConnectStatusListener listener)
abstract int
getDeviceSecurityLevel(String uuid)
abstract boolean
getDeviceSecurityFlag(String uuid)
abstract DeviceInfoRsp
getDeviceInfo(String uuid)
abstract void
updateControllerBeanByParallel(String uuid, BleControllerUpdateBean bean)
Update ControllerBean while parallel pair,because ble connect is not existsthe next ble connect , we need update some device info。the difference with updateControllerBean isthis method not change ble connect status abstract void
replaceMacControl(String uuid, String deviceBeanUuid)
abstract boolean
isDeviceConnected(String uuid)
判定设备是否连接 -
-
Method Detail
-
activator
abstract void activator(BleControllerBean bleControllerBean)
Start activator
- Parameters:
bleControllerBean
- required parameters for activator
-
activator
abstract void activator(BatchBeaconActivatorBean bleControllerBean, ActivateBLEDeviceListener listener)
-
stopActivator
abstract void stopActivator(String uuid)
Stop activator
- Parameters:
uuid
- uuid of bluetooth device
-
preConnect
abstract void preConnect(BleControllerBean bleControllerBean)
Start Pre Connect
- Parameters:
bleControllerBean
- required parameters for preConnect
-
registerMultiModeDevStatusListener
abstract void registerMultiModeDevStatusListener(String uuid, OnBleMultiModeDevStatusListener listener)
Register BleMultiModeDevStatus
- Parameters:
uuid
- uuid of bluetooth devicelistener
- listener
-
unregisterMultiModeDevStatusListener
abstract void unregisterMultiModeDevStatusListener(String uuid, OnBleMultiModeDevStatusListener listener)
Unregister BleMultiModeDevStatus
- Parameters:
uuid
- uuid of bluetooth devicelistener
- listener
-
sendChannel
abstract void sendChannel(String uuid, int type, Map<String, Object> param, OnBleSendChannelListener listener)
Send the channel
- Parameters:
uuid
- uuid of bluetooth devicetype
- type of businessparam
- param of businesslistener
- listener
-
revChannel
abstract void revChannel(String uuid, int type, Map<String, Object> param, OnBleRevChannelListener listener)
In the channel for data
- Parameters:
uuid
- uuid of bluetooth devicetype
- type of businessparam
- param of businesslistener
- listener
-
updateControllerBean
abstract void updateControllerBean(String uuid, BleControllerUpdateBean bean)
Update ControllerBean
- Parameters:
bean
- required parameters for updateControllerBean
-
disconnectDevice
abstract void disconnectDevice(String uuid)
Disconnect device
- Parameters:
uuid
- uuid of bluetooth device
-
registerBleConnectStatusChange
abstract void registerBleConnectStatusChange(String uuid, OnBleConnectStatusListener listener)
-
unregisterBleConnectStatusChange
abstract void unregisterBleConnectStatusChange(String uuid, OnBleConnectStatusListener listener)
-
getDeviceSecurityLevel
abstract int getDeviceSecurityLevel(String uuid)
-
getDeviceSecurityFlag
abstract boolean getDeviceSecurityFlag(String uuid)
-
getDeviceInfo
abstract DeviceInfoRsp getDeviceInfo(String uuid)
-
updateControllerBeanByParallel
abstract void updateControllerBeanByParallel(String uuid, BleControllerUpdateBean bean)
Update ControllerBean while parallel pair,because ble connect is not existsthe next ble connect , we need update some device info。the difference with updateControllerBean isthis method not change ble connect status
- Parameters:
bean
- required parameters for updateControllerBean
-
replaceMacControl
abstract void replaceMacControl(String uuid, String deviceBeanUuid)
-
isDeviceConnected
abstract boolean isDeviceConnected(String uuid)
判定设备是否连接
-
-
-
-