Skip to content

Instantly share code, notes, and snippets.

@mohnish82
Last active November 29, 2015 05:55
Show Gist options
  • Save mohnish82/827bc5f8bb0427d93c68 to your computer and use it in GitHub Desktop.
Save mohnish82/827bc5f8bb0427d93c68 to your computer and use it in GitHub Desktop.
Log events to file
==================
curl -H 'Authorization: Bearer <auth_token_here>' -N https://api.particle.io/v1/devices/events -o photon.log
-H => header
-N => No buffer; output in real time
-o => output to file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment