upload-update-file 接口
上传固件,上传文件格式必须为.mwf。
请求方式
POST http://ip/mwapi?method=upload-update-file
| 参数 | 说明 | 
|---|---|
| method | 方法名称:upload-update-file | 
返回数据
{
  "status": 0,
  "up-to-date": true,
  "version": "1.1.72",
  "size": 11890776
}
| 属性 | 说明 | 
|---|---|
| status | 返回状态。0:上传成功,返回其它值请参考 API 状态码。 | 
| up-to-date | 当前版本是否为最新,有效值:true/false。 | 
| version | 上传的固件版本号。 | 
| size | 上传的固件文件大小 (B)。 |