1.0.0 • Published 8 years ago

particle-beam v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

Particle-Beam

Send requests to your Particle Photon

How to use

Particle-beam is just a simple convienence wrapper built around the request module, and lets you post to your photon's api.

Usage is pretty straight forward:

var ParticleBeam = require('particle-beam');

// create a new beam, and pass your photon's device id and token id
var pewpew = ParticleBeam({
  "device": "[your device id here]",
  "token": "[your api token here]"
});

// Now that you have a beam configured to your device,
// you can call functions you've registered to your board.
pewpew('[name of function]', [dataString (optional)], callback);