0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-12-22 13:53:48 +01:00
Go to file
casperlamboo 01691bc609 fix error
2018-01-25 17:29:58 +01:00
src fix error 2018-01-25 17:29:58 +01:00
.gitignore update to web pack 2017-11-30 17:23:13 +01:00
.npmignore update to web pack 2017-11-30 17:23:13 +01:00
index.js update example 2017-11-30 17:57:22 +01:00
package-lock.json update to web pack 2017-11-30 17:23:13 +01:00
package.json set author 2017-11-30 18:02:39 +01:00
README.md replace tabs with space 2016-04-21 15:52:23 +02:00
test.gcode update to web pack 2017-11-30 17:23:13 +01:00
webpack.config.js update example 2017-11-30 17:57:22 +01: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);