1.0.2 • Published 8 years ago

wowweemip v1.0.2

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

WowWee MiP JavaScript (Node.js) SDK

npm.io

The free MiP iOS SDK lets you control your WowWee MiP robot on any devices which has a Bluetooth Low Energy adapter. To use this SDK you will also need a physical MiP robot.

Pre-built official SDKs are also available for iOS, Android, PhoneGap, Windows.

For information on WowWee products visit: http://www.wowwee.com

Installation

npm install wowweemip

Usage

var wowweemip = require("wowweemip");
var mipFinder = new wowweemip.Finder();

mipFinder.scan(function(err, robots) {
	if (err != null) {
		console.log(err);
		return;
	}
	
	//connect to first mip
	var selectedMip = robots[0];
	mipFinder.connect(selectedMip, function(err) {
		if (err != null) {
			console.log(err);
			return;
		}
		
		console.log("connected");
		
		//move toward
		selectedMip.driveDistanceByCm(20, 0, function(err) {
			console.log("moving toward");
		});
	});
});

Example

node example/mip.js to execute the demo with simple commands

Debug Mode

Logger is used by debug npm install debug

  • DEBUG=mip* node example/mip.js show more logs for mipnode library

  • DEBUG=* node example/mip.js show all logs for mipnode & noble libraries