-
public interface IThingBeaconManager
Beacon operate manager. Provide basic ability of Thing's Beacon
-
-
Method Summary
Modifier and Type Method Description abstract boolean
isBeaconLocalOnline(String devId)
Get thing's Beacon Device online status. abstract void
publishDps(String devId, String dps, IResultCallback callback)
send data points to device by beacon advertising abstract void
publishGroupDps(long groupId, String dps, IResultCallback callback)
send data points to beacon group by beacon advertising abstract void
addDevice(String devId, long groupId, IResultCallback callback)
Add device to group. abstract void
deleteDevice(String devId, long groupId, IResultCallback callback)
delete device from this group. abstract void
dismissGroup(long groupId)
Dismiss the group. abstract void
resetFactoryLocal(DeviceBean deviceBean, IResultCallback callback)
Restore the factory equipment abstract void
queryDevicesStatus(List<String> devIdList, IResultCallback callback)
query whether the device is online abstract void
startScanBeacon(List<String> devIds)
abstract void
stopScanBeacon(List<String> devIds)
abstract void
updateDeviceOnlineStatus(String devId, boolean isOnline)
abstract void
registerAuthListener(IThingResultCallback<BeaconAuthBean> listener)
abstract void
unregisterAuthListener(IThingResultCallback<BeaconAuthBean> listener)
abstract void
sendBeaconAuth(BeaconAuthBean authBean, IResultCallback callback)
abstract void
updateBeaconMesh(List<BeaconMeshBean> beaconMeshBeans)
abstract void
updateBeaconDpsToCacheAndNotify(String devId, String dps)
abstract void
updateBeaconGroupDpsToCacheAndNotify(long groupId, String dps)
abstract void
startBatchExecution(List<BatchExecutionDps> batchExecutionDpsList, int retryCount)
-
-
Method Detail
-
isBeaconLocalOnline
abstract boolean isBeaconLocalOnline(String devId)
Get thing's Beacon Device online status.
- Parameters:
devId
- the device Id
-
publishDps
abstract void publishDps(String devId, String dps, IResultCallback callback)
send data points to device by beacon advertising
- Parameters:
devId
- the device Iddps
- Data pointscallback
- IResultCallback
-
publishGroupDps
abstract void publishGroupDps(long groupId, String dps, IResultCallback callback)
send data points to beacon group by beacon advertising
- Parameters:
groupId
- the group iddps
- Data pointscallback
- IResultCallback
-
addDevice
abstract void addDevice(String devId, long groupId, IResultCallback callback)
Add device to group.
- Parameters:
devId
- the device idgroupId
- the group idcallback
- the callback IResultCallback
-
deleteDevice
abstract void deleteDevice(String devId, long groupId, IResultCallback callback)
delete device from this group.
- Parameters:
devId
- the device idgroupId
- the group idcallback
- Callback result success or failure.
-
dismissGroup
abstract void dismissGroup(long groupId)
Dismiss the group.
- Parameters:
groupId
- the group id
-
resetFactoryLocal
abstract void resetFactoryLocal(DeviceBean deviceBean, IResultCallback callback)
Restore the factory equipment
- Parameters:
deviceBean
- device mode DeviceBeancallback
- IResultCallback
-
queryDevicesStatus
abstract void queryDevicesStatus(List<String> devIdList, IResultCallback callback)
query whether the device is online
- Parameters:
devIdList
- the beacon deviceIdcallback
- Call method result,Not query result
-
startScanBeacon
abstract void startScanBeacon(List<String> devIds)
-
stopScanBeacon
abstract void stopScanBeacon(List<String> devIds)
-
updateDeviceOnlineStatus
abstract void updateDeviceOnlineStatus(String devId, boolean isOnline)
-
registerAuthListener
abstract void registerAuthListener(IThingResultCallback<BeaconAuthBean> listener)
-
unregisterAuthListener
abstract void unregisterAuthListener(IThingResultCallback<BeaconAuthBean> listener)
-
sendBeaconAuth
abstract void sendBeaconAuth(BeaconAuthBean authBean, IResultCallback callback)
-
updateBeaconMesh
abstract void updateBeaconMesh(List<BeaconMeshBean> beaconMeshBeans)
-
updateBeaconDpsToCacheAndNotify
abstract void updateBeaconDpsToCacheAndNotify(String devId, String dps)
-
updateBeaconGroupDpsToCacheAndNotify
abstract void updateBeaconGroupDpsToCacheAndNotify(long groupId, String dps)
-
startBatchExecution
abstract void startBatchExecution(List<BatchExecutionDps> batchExecutionDpsList, int retryCount)
-
-
-
-