0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-22 13:53:48 +01:00
Go to file
2016-08-19 16:07:55 +02:00
example add ; 2016-07-19 16:14:48 +02:00
src setautoupdate always returns true 2016-08-19 16:07:55 +02:00
.gitignore add jspm dependency 2016-08-19 15:36:21 +02:00
jspm.config.js replace event dispatcher with mr doob's event dispatcher 2016-07-19 11:19:53 +02:00
package.json add jspm dependency 2016-08-19 15:36:21 +02:00
README.md replace tabs with space 2016-04-21 15:52:23 +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) => {
    const status = event.state;
  });

  box.setAutoUpdate(true, 1000);
});

doodle3DManager.setAutoUpdate(true, 1000);