Executing curl from particle function

But actually you should not "wait" in a Particle.function() callback - neither by using delay() nor by proc.wait() (unless you'll be sure to return from the callback within 3sec).

Yes, I can see why that is.

I actually copied the docs from the reference pages:

// SYNTAX
process.wait();

// EXAMPLE USAGE
// Run a Javascript program
Process proc = Process::run("node /home/pi/update.js");
proc.wait();

I will test without the wait().

Thanks for flagging this!