Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arduino 1.6 Command Line Execution #26

Open
wants to merge 4 commits into
base: arduino-1.6
Choose a base branch
from

Conversation

ergreen
Copy link

@ergreen ergreen commented Mar 5, 2015

I updated CompilerHandler to assemble a command line request to arduino with appropriate flags and build parameters. The handler then finds the appropriate compiled output file, reads it, and outputs in JSON format. Problems to be overcome: I'm still having difficulty calling the Arduino java tool using PHP exec(), as when I use CURL to test, it simply hangs and doesn't get a response, even when redirecting stderr to stdout. Also need to read all JSON variables from the input, and figure out a way to cache libraries before calling the command line tool if they are not included in Arduino Core files. I will work on ironing out these issues this week, but could use assistance figuring out the unresponsive exec("./arduino --get-pref update.check 2>&1",$output); issue. #23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant