プライバシーポリシー
データプライバシーとセキュリティ契約

$ota/report/${productID}/${deviceName}This topic is used to publish (upstream) messages, through which the device reports the version number and the download/update progress to the cloud.$ota/update/${productID}/${deviceName}This topic is used to subscribe to (downstream) messages, through which the device receives the update message from the cloud.

$ota/report/${productID/${deviceName} topic over the MQTT protocol to report its version number:{"type": "report_version","report":{"version": "0.1"}}// type: message type// version: the reported version number
$ota/update/${productID}/${deviceName} topic:{"file_size": 708482,"md5sum": "36eb5951179db14a63****a37a9322a2","type": "update_firmware","url": "https://ota-1255858890.cos.ap-guangzhou.myqcloud.com","version": "0.2"}// type: the message type is `update_firmware`// version: updated version// url: URL of the downloaded firmware// md5asum: MD5 value of the firmware// file_size: firmware size in bytes
$ota/report/${productID}/${deviceName} topic: {"type": "report_progress","report":{"progress":{"state":"downloading","percent":"10","result_code":"0","result_msg":""},"version": "0.2"}}// type: message type// state: the status is "downloading"// percent: the current download progress in percentages
$ota/report/${productID}/${deviceName} topic:{"type": "report_progress","report":{"progress":{"state":"burning","result_code":"0","result_msg":""},"version": "0.2"}}// type: message type// state: the status is "burning"
$ota/report/${productID}/${deviceName} topic:{"type": "report_progress","report":{"progress":{"state":"done","result_code":"0","result_msg":""},"version": "0.2"}}// type: message type// state: the status is "completed"
$ota/report/${productID}/${deviceName} topic:{"type": "report_progress","report":{"progress":{"state":"fail","result_code":"-1","result_msg":"time_out"},"version": "0.2"}}// state: the status is "failed"// result_code: error code. -1: download timed out; -2: the file does not exist; -3: the signature expired; -4: MD5 mismatch; -5: firmware update failed// result_msg: error message

フィードバック