Skip to content

ReferenceError: TextDecoder is not defined #28

@josemariagarcia95

Description

@josemariagarcia95

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions