Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReferenceError: TextDecoder is not defined #28

Open
josemariagarcia95 opened this issue Jul 17, 2019 · 0 comments
Open

ReferenceError: TextDecoder is not defined #28

josemariagarcia95 opened this issue Jul 17, 2019 · 0 comments

Comments

@josemariagarcia95
Copy link

josemariagarcia95 commented Jul 17, 2019

I'm trying to use this library to read data from a Xiaomi 2 Band with Node. I got a Bluetooth dongle and did several changes on the example code (since I cannot access Web Bluetooth from plain Node.js and the webbluetooth package doesn't seem to work at the moment). I can detect the device and presumably connect to it but I've stumbled upon this problem. When I try to create a new Miband object I get an exception from this line of miband.js (line 78).

this.textDec = new TextDecoder();

SO: Windows 10 x64
Node version: v10.15.0
Npm: 6.4.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant