Package 

Interface IThingBleBeaconPreCtrl

    • 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)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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秒)