If you are asking a question, please follow this template:
- My goal is: Performing the OTA Update
- My actions are: cannot do /update/revert and /update/commit
- The result I see is: I can able to update the device over OTA by using the http://IP_address/update
- My expectation & question is: I cannot perform the /update/revert or /update/commit
My code:
$("#previousFirmware").on("click", function () {
$.ajax({
url: "/update/revert",
type: "POST",
data: JSON.stringify({}),
contentType: "application/json",
success: function (response) {
console.log("Rooling Back To Previous Firmware");
}
})
})
When I perform the above request, I get the error 400 BAD REQUEST
Can anyone please suggest to achieve this.