Last active
December 26, 2020 20:22
-
-
Save costyn/73d5e8a91ca4e6fb269a9d71da10ca3d to your computer and use it in GitHub Desktop.
Revisions
-
costyn revised this gist
Dec 26, 2020 . 1 changed file with 5 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,6 +7,8 @@ framework = arduino board = uno upload_protocol = custom upload_flags = --header "Content-Type: application/json" --data "@diagram.json" upload_command = curl $UPLOAD_FLAGS https://wokwi.com/api/projects/save extra_scripts = post:curl --request POST --data-binary "@$SOURCE" https://wokwi.com/api/projects/save/hex -
costyn created this gist
Dec 26, 2020 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ ; https://docs.platformio.org/en/latest/projectconf/section_env_upload.html#upload-command ; https://stackoverflow.com/questions/9134003/binary-data-posting-with-curl [env:uno] platform = atmelavr framework = arduino board = uno upload_protocol = custom upload_flags = --request POST --data-binary "@$SOURCE" upload_command = curl $UPLOAD_FLAGS https://wokwi.com/api/projects/save/hex