-
public interface IThingBleBeaconPreCtrl
统一对外的 ble-beacon 预控接口
-
-
Method Summary
Modifier and Type Method Description abstract Integer
on(ScanDeviceBean device, Long advTime)
预控:开启 abstract Integer
off(ScanDeviceBean device, Long advTime)
预控:关闭 abstract Integer
reverse(ScanDeviceBean device, Long advTime)
预控:反转 abstract Integer
flash(ScanDeviceBean device, Integer flashTime, Long advTime)
预控:闪烁 abstract Integer
sendData(ScanDeviceBean device, ByteArray data, Long advTime)
预控:透传数据 abstract Boolean
supportPreCtrl(ScanDeviceBean device)
-
-
Method Detail
-
on
abstract Integer on(ScanDeviceBean device, Long advTime)
预控:开启
- Parameters:
device
- 需要控制的设备advTime
- 发送 beacon 广播的时长,单位:秒(默认2秒)
-
off
abstract Integer off(ScanDeviceBean device, Long advTime)
预控:关闭
- Parameters:
device
- 需要控制的设备advTime
- 发送 beacon 广播的时长,单位:秒(默认2秒)
-
reverse
abstract Integer reverse(ScanDeviceBean device, Long advTime)
预控:反转
- Parameters:
device
- 需要控制的设备advTime
- 发送 beacon 广播的时长,单位:秒(默认2秒)
-
flash
abstract Integer flash(ScanDeviceBean device, Integer flashTime, Long advTime)
预控:闪烁
- Parameters:
device
- 需要控制的设备flashTime
- 需要闪烁的时长advTime
- 发送 beacon 广播的时长,单位:秒(默认2秒)
-
sendData
abstract Integer sendData(ScanDeviceBean device, ByteArray data, Long advTime)
预控:透传数据
- Parameters:
device
- 需要控制的设备advTime
- 发送 beacon 广播的时长,单位:秒(默认2秒)
-
supportPreCtrl
abstract Boolean supportPreCtrl(ScanDeviceBean device)
- Parameters:
device
- 需要控制的设备
-
-
-
-