public class DevService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
DevService.breezeSubDevLoginCallback |
static class |
DevService.OnlyOnceServiceListener |
static interface |
DevService.ServiceListener
服务回调接口类
用于通知服务调用结果 |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BUNDLE_KEY_DEVICENAME
deviceName 的 key 值
|
static java.lang.String |
BUNDLE_KEY_PRODUCTKEY
productKey 的 key 值
|
static java.lang.String |
BUNDLE_KEY_SUBCHANNEL
设备通道的 key 值
|
Constructor and Description |
---|
DevService() |
Modifier and Type | Method and Description |
---|---|
static void |
breezeSubDevLogin(java.lang.String productKey,
java.lang.String deviceName,
DevService.ServiceListener serviceListener)
使蓝牙子设备动态上线
|
protected static void |
breezeSubDevLoginInner(java.lang.String productKey,
java.lang.String deviceName,
DevService.ServiceListener serviceListener) |
static void |
notifySubDeviceBinded(org.json.JSONObject params)
子设备绑定后的通知接口,上层应用需要在绑定子设备成功后调用
|
static void |
subDeviceAuthenLogin(org.json.JSONObject params,
DevService.ServiceListener listener)
子设备动态上线接口
|
static void |
subDeviceAuthenLogin(java.lang.String productKey,
java.lang.String deviceName,
boolean isDelayCallback,
DevService.ServiceListener listener)
子设备动态上线接口
|
static void |
subDeviceAuthenLogin(java.lang.String productKey,
java.lang.String deviceName,
DevService.ServiceListener listener)
子设备动态上线接口
|
public static final java.lang.String BUNDLE_KEY_PRODUCTKEY
public static final java.lang.String BUNDLE_KEY_DEVICENAME
public static final java.lang.String BUNDLE_KEY_SUBCHANNEL
public static void subDeviceAuthenLogin(org.json.JSONObject params, DevService.ServiceListener listener)
params
- 子设备的描述信息listener
- 回调接口SubDeviceInfo
public static void subDeviceAuthenLogin(java.lang.String productKey, java.lang.String deviceName, DevService.ServiceListener listener)
productKey
- 子设备productKeydeviceName
- 子设备deviceNamelistener
- 回调接口public static void subDeviceAuthenLogin(java.lang.String productKey, java.lang.String deviceName, boolean isDelayCallback, DevService.ServiceListener listener)
productKey
- 子设备productKeydeviceName
- 子设备deviceNameisDelayCallback
- 是否延迟回调listener
- 回调接口public static void breezeSubDevLogin(java.lang.String productKey, java.lang.String deviceName, DevService.ServiceListener serviceListener)
productKey
- 子设备的 productKeydeviceName
- 子设备的 deviceNameserviceListener
- 回调接口protected static void breezeSubDevLoginInner(java.lang.String productKey, java.lang.String deviceName, DevService.ServiceListener serviceListener)
public static void notifySubDeviceBinded(org.json.JSONObject params)
params
- 子设备动态描述信息SubDevInfo