FOTA update IoT node kit
I am trying to get FOTA updates working with the IoT node kit and Azure.
I currently have v4.0.1 installed on the board. I uploaded v4.0.2 to an azure storage account where I created a blob and uploaded the file, then generated a blob sas url.
In my Azure application I created a command with the field name FirmwareUpdate with an input text field of URL. Below is the command history from Azure.
The device recognizes the firmware update request, but it has an error: "Err: Parsing the FOTA command searching Start File Path" (output below).
What does the error mean? I am using base software on the device and on the update file. Am I not properly storing the file to be uploaded in the cloud and generating a url for it?
Received firmware update request. Use package at: [https://something.blob.core.windows.net/fotafota/Azure_IoTCentral_BL.bin?something]
Err: Parsing the FOTA command searching Start File Path
IoTHubClient_LL_SendEventAsync accepted message [2] forI also tried just using the URL without generating an SAS, and I get farther, but with a different error
Confirmation received for message [10] with result = IOTHUB_CLIENT_CONFIRMATION_OK
Received firmware update request. Use package at: [https://something.blob.core.windows.net/fota/Azure_IoTCentral_BL.bin]
Channel 1 for Timer 1 stopped
Download FOTA from: HostName=[something.blob.core.windows.net] Type=[Secure] port=[443] File=[/fota/Azure_IoTCentral_BL.bin]
Ok reported State [2]: Downloading
-->DeviceTwin CallBack [2]: Status_code = 204
Ok io_interface_description
Ok xio_create
onOpenCompleteFOTA
Ok xio_open
Err: xio_send
Err During FOTA... Sorry retry...
Ok reported State [3]: DownloadFailed
-->DeviceTwin CallBack [3]: Status_code = 204