Is it possible to flash a Core from firmware via the web interface?

Hi,

I would like to share the firmware I compiled with a friend so that he can test it on his Core.

However, he is not comfortable with the command line, and I wonder if it is possible to do one of the following:

  1. For me to flash his Core remotely if I know its ID, even though I do not own it.
  2. For him to upload the firmware to the Spark Cloud / web editor, and from there to flash his Core with it.

Thank you for your help!

Look at the command here:

http://docs.spark.io/api/#verifying-and-flashing-new-firmware-flash-a-core-with-a-pre-compiled-binary

You will need an access token and the core id

# EXAMPLE REQUEST IN TERMINAL TO FLASH A BINARY
curl -X PUT -F file=@my-firmware-app.bin -F file_type=binary \
  "https://api.spark.io/v1/devices/0123456789abcdef01234567?access_token=1234123412341234123412341234123412341234"
1 Like

Thanks!