Skip to content

Instantly share code, notes, and snippets.

@zankich
Created June 9, 2015 21:30
Show Gist options
  • Select an option

  • Save zankich/34002ec74cc8d26f494f to your computer and use it in GitHub Desktop.

Select an option

Save zankich/34002ec74cc8d26f494f to your computer and use it in GitHub Desktop.
"use strict";
var bebop = require("../.");
var drone = bebop.createClient();
drone.connect();
drone.on("battery", function(data) {
console.log("percentage: ", data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment