The ./demos/fota_posix_demo.c sample code file provided by IoT Platform does not have the logic to store the firmware. You must specify the processing logic of a callback to download and store the firmware.