Go to file
casperlamboo a7bb60f461 updated to jspm 0.17 2016-07-19 11:16:34 +02:00
example updated to jspm 0.17 2016-07-19 11:16:34 +02:00
src add log when failed sending batch 2016-04-26 11:49:39 +02:00
.gitignore fixed bug in example 2015-10-13 11:03:18 +02:00
README.md replace tabs with space 2016-04-21 15:52:23 +02:00
jspm.config.js updated to jspm 0.17 2016-07-19 11:16:34 +02:00
package.json updated to jspm 0.17 2016-07-19 11:16:34 +02:00

README.md

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);