0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-22 13:53:48 +01:00
Go to file
2015-07-27 17:13:23 +02:00
example improved code for splitting code into batches 2015-07-27 17:13:23 +02:00
src improved code for splitting code into batches 2015-07-27 17:13:23 +02:00
.gitignore improved code for splitting code into batches 2015-07-27 17:13:23 +02:00
config.js moved printer logic to doodle3dapi.printer 2015-07-24 17:37:01 +02:00
package.json moved printer logic to doodle3dapi.printer 2015-07-24 17:37:01 +02:00
README.md added DoodleBox Manager 2015-07-24 13:15:00 +02:00

Doodle3D-API

Doodle3D API for communication with the Doodle3D WiFi-Box

import Doodle3DManager from 'src/doodle3dmanager.js';

var doodle3DManager = new Doodle3DManager();

doodle3DManager.addEventListener('boxappeared', (event) => {
	var box = event.box;

	box.addEventListener('connect', (event) => {
	});

	box.addEventListener('disconnect', (event) => {
	});

	box.addEventListener('update', (event) => {
		var status = event.state;
	});

	box.setAutoUpdate(true);
});

doodle3DManager.setAutoUpdate(true);