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

Update README.md

This commit is contained in:
Casper Lamboo 2015-09-19 15:10:41 +02:00
parent 65d61dd492
commit 8557a3e55b

View File

@ -4,11 +4,9 @@ Doodle3D API for communication with the Doodle3D WiFi-Box
```javascript
import Doodle3DManager from 'src/doodle3dmanager.js';
var doodle3DManager = new Doodle3DManager();
doodle3DManager.addEventListener('boxappeared', (event) => {
var box = event.box;
const doodle3DManager = new Doodle3DManager();
doodle3DManager.addEventListener('boxappeared', ({box}) => {
box.addEventListener('connect', (event) => {
});
@ -16,7 +14,7 @@ doodle3DManager.addEventListener('boxappeared', (event) => {
});
box.addEventListener('update', (event) => {
var status = event.state;
let status = event.state;
});
box.setAutoUpdate(true);