Go Down

Topic: Suggested Update/Correction, Bridge Process Tutorial  (Read 227 times) previous topic - next topic

EcstaticMark

I'm not sure this is the place for this but gotta start somewhere.

In Tutorials > Examples from Libraries > Bridge > Process  (https://www.arduino.cc/en/Tutorial/Process), the following code did not work for me because the URL for the ASCII art has changed;

Code: [Select]

void runCurl() {
  // Launch "curl" command and get Arduino ascii art logo from the network
  // curl is command line program for transferring data using different internet protocols
  Process p;        // Create a process and call it "p"
  p.begin("curl");  // Process that launch the "curl" command
  p.addParameter("http://www.arduino.cc/asciilogo.txt"); // Add the URL parameter to "curl"
  p.run();      // Run the process and wait for its termination


I changed the URL to https://... and added a curl parameter, -k, and got it to load the ASCII art.

Code: [Select]

void runCurl() {
  // Launch "curl" command and get Arduino ascii art logo from the network
  // curl is command line program for transferring data using different internet protocols
  Process p; // Create a process and call it "p"
  p.begin("curl"); // Process that launch the "curl" command
  p.addParameter("-k");
  p.addParameter("https://www.arduino.cc/asciilogo.txt"); // Add the URL parameter to "curl"
  p.run(); // Run the process and wait for its termination


The same is true for the example code in the Arduino IDE.

The code for this example (and any others using the obsolete ASCII art URL) need to be updated.

Mark

pert

Hi EcstaticMark
Thanks for reporting this! Unfortunately the Arduino developers don't read the forum much so I doubt they've seen this post.

I do think this problem should be solved but unfortunately I don't own a Yun so I can't test it. I'm sure the Arduino community would be grateful if you or anyone else would take a little time to submit a bug report to:
https://github.com/arduino-libraries/Bridge/issues/new
or even better, submit a pull request with the fix.

Go Up