I am using the following code snippet to get a file from Cumulosity platform to a device (I am pushing a configuration binary from platform to device and this is the code snippet of handler of instruction handler to push the file - written on the agent side):
virtual void operator()(SrRecord &r, SrAgent &agent)
const string fToStore(“cfgFile.txt”);
r.value(3) is value of c8y_DownloadConfigFile.url and has the form “https:///inventory/binaries/binaryID”.
Am consistently getting error 404 for resource not found for mentioned URL.
Any help is appreciated here. Thanking all in advance.
Thanks and Best Regards.