I am using the folllowing RPC loopback call, which successfully updates firmware:
RPC.call (RPC.LOCAL, ‘OTA.Update’, {url:“192.168.1.9/fw/fw.zip”,ignore_same_version:true}, function (resp,ud){print(‘Response:’,JSON.stringify(resp));},null);
However, when the RPC is called when the version to be updated is the same as the currently operating version, the RPC issues a message indicating that the app will not be written, but still loads the file system, switches partitions and reboots.
The desired operation would be to ignore everything and do nothing if the firmware versions are the same. How can I achieve this functionality?
Thanks for your help as always,
JSW