From a2e5ee2fe139f6c8de16c7d7392ddd8c6b668eae Mon Sep 17 00:00:00 2001 From: Casper Lamboo Date: Wed, 15 Jul 2015 15:10:05 +0200 Subject: [PATCH] Update README.md --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 5469aef..5ea36ef 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,18 @@ # Doodle3D-API Doodle3D API for communication with the Doodle3D WiFi-Box + +```javascript +import Doodle3DAPI from 'doodle3dapi'; + +var doodle3DAPI = new Doodle3DAPI(boxData.localip); +doodle3DAPI.onconnect = function () { + +}; +doodle3DAPI.ondisconnect = function () { + +}; +doodle3DAPI.onupdate = function (data) { + +}; +doodle3DAPI.startUpdateLoop(); +```