Hi folks,
Here's the documentation for flashing Particle outside the Web IDE.
You can use the API directly: https://docs.particle.io/reference/api/#flash-a-device-with-source-code
$ curl -X PUT "https://api.particle.io/v1/devices/0123456789abcdef01234567?access_token=1234" \
-F "file=@app.ino" \
-F "file1=@project.properties"
project.properties
tells the cloud compiler what libraries you want to use. For Carloop, put this in project.properties
:
dependencies.carloop=1.1.1
If you are building a web app, you can also use the Particle Javascript library: https://docs.particle.io/reference/javascript/#flashing
This is what the apps page does here: https://github.com/carloop/app-reminder/blob/master/docs/reminder.js#L137