0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-11-12 23:57:57 +01:00
Go to file
2016-04-20 11:12:45 +02:00
example Updated autoupdate loop 2015-10-15 10:56:01 +02:00
src remove todo 2016-04-20 11:12:45 +02:00
.gitignore fixed bug in example 2015-10-13 11:03:18 +02:00
config.js fixed bug in example 2015-10-13 11:03:18 +02:00
package.json moved printer logic to doodle3dapi.printer 2015-07-24 17:37:01 +02:00
README.md Update README.md 2015-09-19 15:44:17 +02:00

Doodle3D-API

Doodle3D API for communication with the Doodle3D WiFi-Box

import {Doodle3DManager} from 'Doodle3D/Doodle3D-API';

const doodle3DManager = new Doodle3DManager();

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

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

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

	box.setAutoUpdate(true);
});

doodle3DManager.setAutoUpdate(true);