public interface ILinkOTABusiness
Factory.create(Object)
获得该接口端实例。限定符和类型 | 接口和说明 |
---|---|
static interface |
ILinkOTABusiness.IDeviceVersionCallback
设备版本信息回调接口
|
static interface |
ILinkOTABusiness.IInquiryNewVersionCallback
查询云端固件信息回调接口
|
static interface |
ILinkOTABusiness.IOtaError
OTA 错误接口
|
static interface |
ILinkOTABusiness.IOtaListener
OTA 升级过程回调接口
|
static interface |
ILinkOTABusiness.IOtaPushListener
OTA 云端推送接口
|
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
DEVICE_TYPE_BLE
蓝牙设备类型
|
限定符和类型 | 方法和说明 |
---|---|
void |
getVersionFromDevice(ILinkOTABusiness.IDeviceVersionCallback callback)
查询当前已连接设备的版本信息
|
void |
inquiryNewVersion(java.lang.String deviceId,
ILinkOTABusiness.IInquiryNewVersionCallback callback)
向云端查询是否有新固件
|
void |
registerOtaPushListener(ILinkOTABusiness.IOtaPushListener listener)
注册推送接口
注册推送接口后,当云端有OTA固件要更新时触发 |
void |
startUpgrade(java.lang.String deviceId,
boolean alcsOta,
java.lang.String type,
ILinkOTABusiness.IOtaListener listener)
开始OTA升级
|
void |
stopUpgrade()
停止OTA升级
|
void |
unRegisterOtaPushListener(ILinkOTABusiness.IOtaPushListener listener)
注销推送接口
|
static final java.lang.String DEVICE_TYPE_BLE
void startUpgrade(java.lang.String deviceId, boolean alcsOta, java.lang.String type, ILinkOTABusiness.IOtaListener listener)
deviceId
- 设备 IDalcsOta
- 是否通过本地通信传输OTA包到设备type
- 设备类型 使用如下值:
DEVICE_TYPE_BLE
listener
- 升级回调接口void stopUpgrade()
void registerOtaPushListener(ILinkOTABusiness.IOtaPushListener listener)
listener
- 推送接口void unRegisterOtaPushListener(ILinkOTABusiness.IOtaPushListener listener)
void inquiryNewVersion(java.lang.String deviceId, ILinkOTABusiness.IInquiryNewVersionCallback callback)
deviceId
- 设备 IDcallback
- 固件回调接口void getVersionFromDevice(ILinkOTABusiness.IDeviceVersionCallback callback)
callback
- 版本回调接口