-
public interface IDevModel
Created by mikeshou on 15/6/3.
-
-
Method Summary
Modifier and Type Method Description abstract void
renameDevice(String gwId, String name, IResultCallback callback)
Gateway rename abstract void
updateIcon(String deviceName, File iconFile, IResultCallback callback)
Update device icon abstract void
send(String command, IResultCallback callback)
Order command abstract void
broadcastSend(String command, IResultCallback callback)
Broadcast data abstract void
multicastSend(String localId, String command, IResultCallback callback)
Multicast data send abstract void
removeDevice(IResultCallback callback)
Delete device abstract void
getDp(String dpId, IResultCallback callback)
Get dp abstract void
getDpList(List<String> dpIds, IResultCallback callback)
Get dps abstract void
queryDps(IResultCallback callback)
abstract boolean
isIntranetControl()
Is LAN control abstract boolean
isCloudOnline()
Is cloud on line abstract void
intranetControl(String command, IResultCallback callback)
Is LAN control abstract void
getDeviceProperty(String gwId, String devId, IPropertyCallback<Map> callback)
Get device property abstract void
saveDeviceProperty(String gwId, String devId, String code, String value, IResultCallback callback)
Save device properties abstract void
getDataPointStat(DataPointTypeEnum type, long time, int number, String dpId, String statType, IGetDataPointStatCallback callback)
Deprecated. abstract void
query(String data, IResultCallback callback)
abstract void
addZigBeeScene(List<String> cids, String gid, String sid, IResultCallback callback)
abstract void
removeZigBeeScene(List<String> cids, String gid, String sid, IResultCallback callback)
abstract void
sendScene(String command, IResultCallback callback)
abstract void
localSceneExecute(String gid, String sid, IResultCallback callback)
Scene execution in old version. abstract void
localLanExecute(String devId, JSONObject data, int type, IResultCallback callback)
abstract void
localSceneExecuteNew(String sceneId, IResultCallback callback)
Local scene execution of the new version of the gateway (the original cloud scene). abstract void
sceneExecuteMqtt(String sceneId, IResultCallback callback)
Execution of gateway scenario using mqtt channel. abstract void
onDestroy()
abstract void
addZigBeeGroup(List<String> cids, String gid, IResultCallback callback)
abstract void
removeZigBeeGroup(List<String> cids, String gid, IResultCallback callback)
abstract void
autoConfigExecute(String type, String devid, String token, long timeout, IResultCallback callback)
abstract void
gatewayRouterConfigExecute(int type, String devid, String token, long timeout, IResultCallback callback)
abstract void
startLightingConfigExecute(String devId, String token, List<String> uuIds, IResultCallback callback)
abstract void
startLightingConfigExecute(String devId, String token, List<String> uuIds, JSONArray jsonArray, IResultCallback callback)
abstract void
stopLightingConfigExecute(String devId, List<String> uuIds, IResultCallback callback)
abstract void
startLightingSearchExecute(String devId, long serverTimeout, long clientTimeout, IResultCallback callback)
abstract void
stopLightingSearchExecute(String devId, IResultCallback callback)
abstract void
getInitiativeQueryDpsInfo(String topicId, List<String> cids, List<Integer> dps, IResultCallback callback)
Query device power consumption. abstract void
sendDpsByApi(String devId, String command, IResultCallback callback)
abstract void
sendCloudDpsByApi(String devId, String command, IResultCallback callback)
abstract void
getOfflineReminderSupportStatus(String hdId, IThingResultCallback<IsSupportOffLineBean> callback)
abstract void
getOfflineReminderStatus(String devId, IThingResultCallback<Boolean> callback)
abstract void
setOfflineReminderStatus(String devId, boolean isWarn, IResultCallback callback)
abstract void
removeDirectlyConnectedDevice(IResultCallback callback)
local directly connected device , clound remove abstract void
queryMeshLanStatus(IResultCallback callback)
abstract void
sendLinkMessageByMqtt(ThingSmartThingMessageType thingMessageType, String command, IResultCallback callback)
abstract void
sendLinkMessageByHttp(ThingSmartThingMessageType thingMessageType, String command, IResultCallback callback)
abstract void
startBeaconLightingConfig(String devId, String token, JSONArray devs, JSONObject rcs, IResultCallback callback)
-
-
Method Detail
-
renameDevice
abstract void renameDevice(String gwId, String name, IResultCallback callback)
Gateway rename
- Parameters:
callback
- IResultCallback
-
updateIcon
abstract void updateIcon(String deviceName, File iconFile, IResultCallback callback)
Update device icon
- Parameters:
deviceName
- The name of the device to be modifiediconFile
- Device icon file to be modifiedcallback
- IResultCallback
-
send
abstract void send(String command, IResultCallback callback)
Order command
- Parameters:
command
- IResultCallback
-
broadcastSend
abstract void broadcastSend(String command, IResultCallback callback)
Broadcast data
- Parameters:
callback
- IResultCallback
-
multicastSend
abstract void multicastSend(String localId, String command, IResultCallback callback)
Multicast data send
- Parameters:
callback
- IResultCallback
-
removeDevice
abstract void removeDevice(IResultCallback callback)
Delete device
- Parameters:
callback
- IResultCallback
-
getDp
abstract void getDp(String dpId, IResultCallback callback)
Get dp
- Parameters:
callback
- IResultCallback
-
getDpList
abstract void getDpList(List<String> dpIds, IResultCallback callback)
Get dps
- Parameters:
callback
- IResultCallback
-
queryDps
abstract void queryDps(IResultCallback callback)
-
isIntranetControl
abstract boolean isIntranetControl()
Is LAN control
-
isCloudOnline
abstract boolean isCloudOnline()
Is cloud on line
-
intranetControl
abstract void intranetControl(String command, IResultCallback callback)
Is LAN control
- Parameters:
callback
- IResultCallback
-
getDeviceProperty
abstract void getDeviceProperty(String gwId, String devId, IPropertyCallback<Map> callback)
Get device property
-
saveDeviceProperty
abstract void saveDeviceProperty(String gwId, String devId, String code, String value, IResultCallback callback)
Save device properties
-
getDataPointStat
@Deprecated() abstract void getDataPointStat(DataPointTypeEnum type, long time, int number, String dpId, String statType, IGetDataPointStatCallback callback)
Deprecated.
Replace by https://thinginc.github.io/thingsmart_home_android_sdk_doc/zh-hans/resource/Device_Get_Dps_History.html
-
query
abstract void query(String data, IResultCallback callback)
-
addZigBeeScene
abstract void addZigBeeScene(List<String> cids, String gid, String sid, IResultCallback callback)
-
removeZigBeeScene
abstract void removeZigBeeScene(List<String> cids, String gid, String sid, IResultCallback callback)
-
sendScene
abstract void sendScene(String command, IResultCallback callback)
-
localSceneExecute
abstract void localSceneExecute(String gid, String sid, IResultCallback callback)
Scene execution in old version.
- Parameters:
callback
- IResultCallback
-
localLanExecute
abstract void localLanExecute(String devId, JSONObject data, int type, IResultCallback callback)
-
localSceneExecuteNew
abstract void localSceneExecuteNew(String sceneId, IResultCallback callback)
Local scene execution of the new version of the gateway (the original cloud scene).
- Parameters:
sceneId
- sceneIDcallback
- IResultCallback
-
sceneExecuteMqtt
abstract void sceneExecuteMqtt(String sceneId, IResultCallback callback)
Execution of gateway scenario using mqtt channel.
- Parameters:
callback
- IResultCallback
-
onDestroy
abstract void onDestroy()
-
addZigBeeGroup
abstract void addZigBeeGroup(List<String> cids, String gid, IResultCallback callback)
-
removeZigBeeGroup
abstract void removeZigBeeGroup(List<String> cids, String gid, IResultCallback callback)
-
autoConfigExecute
abstract void autoConfigExecute(String type, String devid, String token, long timeout, IResultCallback callback)
-
gatewayRouterConfigExecute
abstract void gatewayRouterConfigExecute(int type, String devid, String token, long timeout, IResultCallback callback)
-
startLightingConfigExecute
abstract void startLightingConfigExecute(String devId, String token, List<String> uuIds, IResultCallback callback)
-
startLightingConfigExecute
abstract void startLightingConfigExecute(String devId, String token, List<String> uuIds, JSONArray jsonArray, IResultCallback callback)
-
stopLightingConfigExecute
abstract void stopLightingConfigExecute(String devId, List<String> uuIds, IResultCallback callback)
-
startLightingSearchExecute
abstract void startLightingSearchExecute(String devId, long serverTimeout, long clientTimeout, IResultCallback callback)
-
stopLightingSearchExecute
abstract void stopLightingSearchExecute(String devId, IResultCallback callback)
-
getInitiativeQueryDpsInfo
abstract void getInitiativeQueryDpsInfo(String topicId, List<String> cids, List<Integer> dps, IResultCallback callback)
Query device power consumption.
- Parameters:
callback
- IResultCallback
-
sendDpsByApi
abstract void sendDpsByApi(String devId, String command, IResultCallback callback)
-
sendCloudDpsByApi
abstract void sendCloudDpsByApi(String devId, String command, IResultCallback callback)
-
getOfflineReminderSupportStatus
abstract void getOfflineReminderSupportStatus(String hdId, IThingResultCallback<IsSupportOffLineBean> callback)
-
getOfflineReminderStatus
abstract void getOfflineReminderStatus(String devId, IThingResultCallback<Boolean> callback)
-
setOfflineReminderStatus
abstract void setOfflineReminderStatus(String devId, boolean isWarn, IResultCallback callback)
-
removeDirectlyConnectedDevice
abstract void removeDirectlyConnectedDevice(IResultCallback callback)
local directly connected device , clound remove
-
queryMeshLanStatus
abstract void queryMeshLanStatus(IResultCallback callback)
-
sendLinkMessageByMqtt
abstract void sendLinkMessageByMqtt(ThingSmartThingMessageType thingMessageType, String command, IResultCallback callback)
-
sendLinkMessageByHttp
abstract void sendLinkMessageByHttp(ThingSmartThingMessageType thingMessageType, String command, IResultCallback callback)
-
startBeaconLightingConfig
abstract void startBeaconLightingConfig(String devId, String token, JSONArray devs, JSONObject rcs, IResultCallback callback)
-
-
-
-