NordicPlayground / Nordic-Thingy52-Thingyjs

Other
39 stars 12 forks source link

How do I use this? #11

Closed WillGeller closed 6 years ago

WillGeller commented 6 years ago

Opened index.html in Chromium for windows 10 which supports web bluetooth now. But clicking connect does nothing. I don't think the script type=module is running at all. The new react app is running fine and connecting to the thingy but it is overkill for what I need and this node module looks like just what I need.

FYI I am working on bridging thingy motion data to web midi using https://github.com/djipco/webmidi :).

WillGeller commented 6 years ago

After some research I found I had to serve the app using https://www.npmjs.com/package/http-server then I could open the app and it works with the es6 modules.

From the readme it is not clear that you can not just open index.html, would be helpful to explain the need to run server.

jtguggedal commented 6 years ago

Yes, that should be explained, thanks for pointing it out. Maybe you could have a look at the documentation for this, @williamtfalch @thomsku ?

williamtfalch commented 6 years ago

Thanks for pointing that out, @WillGeller , we will alter the documentation.