0
0
mirror of https://github.com/Doodle3D/Doodle3D-API synced 2024-11-05 04:33:24 +01:00
Doodle3D-API/README.md

28 lines
532 B
Markdown
Raw Normal View History

2015-07-15 15:04:15 +02:00
# Doodle3D-API
Doodle3D API for communication with the Doodle3D WiFi-Box
2015-07-15 15:10:05 +02:00
```javascript
import Doodle3DManager from 'src/doodle3dmanager.js';
2015-07-15 15:10:05 +02:00
var doodle3DManager = new Doodle3DManager();
2015-07-15 15:10:05 +02:00
doodle3DManager.addEventListener('boxappeared', (event) => {
var box = event.box;
2015-07-15 15:10:05 +02:00
box.addEventListener('connect', (event) => {
});
box.addEventListener('disconnect', (event) => {
});
box.addEventListener('update', (event) => {
var status = event.state;
});
box.setAutoUpdate(true);
});
doodle3DManager.setAutoUpdate(true);
2015-07-15 15:10:05 +02:00
```