Does anyone know if there is a way to flash a device with source code that includes public libraries without also uploading all the necessary libraries? i.e. the docs provide a method:
PUT /v1/devices/:deviceId?access_token=yourtokenhere
My use case involves using an app to program a device selected by the user. The device can one of a few possible platform_ids. Clearly I can precompile first for each platform and then program using the appropriate binary (after identifying the device platform) but I am hoping there is a more elegant way to simply send one .ino file and somehow include the necessary public libraries using the Cloud API.
For example take the source:
#include <ArduinoJson.h>
void setup() {
}
void loop() {
}
Is there a way to Flash with source code using the Cloud API without uploading ArduinoJson.h ?
This endpoint works great when there are no other libraries to upload but with a decent size program uploading all the dependent libraries is not practical in my case.
Thanks for the help.