public class DeviceManager
extends java.lang.Object
限定符和类型 | 方法和说明 |
---|---|
void |
deinit()
反初始化
|
IDeviceCOTA |
getDeviceCOTA()
获取 CoTA 请求实例
|
IDeviceLabel |
getDeviceLabel()
获取标签请求实例
|
IDeviceShadow |
getDeviceShadow()
获取设备影子请求实例
|
IGateway |
getGateway()
获取网关操作实例
|
static DeviceManager |
getInstance() |
IApiClient |
getIoTApiClient()
获取与云端 HTTP/S 请求实例
|
IMqttClient |
getIoTMqttClient()
基础 Mqtt 请求接口
|
IThing |
getIoTThing()
获取物模型实例
|
void |
init(DMConfigParams params,
IDMCallback<InitResult> listener) |
void |
registerOnNotifyListener(IConnectNotifyListener listener)
注册全局数据下行监听器
|
void |
unregisterOnNotifyListener(IConnectNotifyListener listener)
* 取消注册全局数据下行监听器
|
public void init(DMConfigParams params, IDMCallback<InitResult> listener)
public IDeviceShadow getDeviceShadow()
public IGateway getGateway()
public IMqttClient getIoTMqttClient()
public IApiClient getIoTApiClient()
public IThing getIoTThing()
public IDeviceLabel getDeviceLabel()
public IDeviceCOTA getDeviceCOTA()
public void registerOnNotifyListener(IConnectNotifyListener listener)
listener
- 监听器IConnectNotifyListener
public void unregisterOnNotifyListener(IConnectNotifyListener listener)
listener
- 监听器IConnectNotifyListener
public void deinit()
public static DeviceManager getInstance()