zakaton / Bose-Frames-Web-SDK

A JavaScript version of the Bose Frames SDK
https://zakaton.github.io/Bose-Frames-Web-SDK/
GNU General Public License v3.0
79 stars 8 forks source link

Cannot read property 'requestDevice" of undefined #3

Open nicoleflloyd opened 5 years ago

nicoleflloyd commented 5 years ago

I'm working on a project where we're using the sensor data from the glasses and sending that information to a server. The current setup is that there is a script running with a raspberry pi paired with the glasses and is listening to the sensor data for certain events. Your example works flawlessly on a Chrome browser on a laptop computer, however, issues are occurring when trying to use the same example on Chromium on a Raspberry Pi.

When the button with the icon is pressed, the error below pops up.

Screen Shot 2019-07-10 at 6 27 15 PM

Any help around this? It'd be great to get details on the script that pairs the devices and a way to override that step if a device automatically pairs when the Pi boots up.

zakaton commented 5 years ago

hey - I'm so sorry I haven't responded in months - I don't get notifications when people post issues so I didn't notice this until today.

I'm not familiar with Chromium on Raspberry Pi and whether it supports Web Bluetooth, but if you'd like to see the part of the script that deals with connecting to the device you can check out this link:

https://github.com/zakaton/Bose-Frames-Web-SDK/blob/master/script/BoseARDevice.js