My understanding is that spark flash uses dfu_util to upload the firmware.
But what does spark compile do? Is it getting whatever files necessary from the cloud to build the firmware? Does it do any kind of caching to speed up the process? It’s still quite quick, and this whole process is much faster than cloud based uploading.
But what does spark compile do? Is it getting whatever files necessary from the cloud to build the firmware?
It sends the blink directory to the compile server, which builds it and returns back the compiled binary.
The OTA update process is a little slower than flashing locally due to network latency (which doesn't come into play when flashing locally). We are taking steps to speed that up. On the Photon, OTA updates will be very quick for small programs!