OTA
发起OTA

开始OTA

ℹ️

目前只有蓝牙通道支持

const firmwareType = 'MCU' // MCU or Module
const data = await device.bleCapability.startUpgrade(firmwareType, (res) => {
  // ota进度,和当前事件
  const { event, percentage} = res;
});
if (data.success) {
  // ota成功
}