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

Windows and Mac support? #31

Closed
ajmas opened this issue Nov 22, 2021 · 7 comments
Closed

Windows and Mac support? #31

ajmas opened this issue Nov 22, 2021 · 7 comments

Comments

@ajmas
Copy link

ajmas commented Nov 22, 2021

Does this library support Mac and Windows, in addition to Linux?

If it does, are there any different setup instructions?

@chrvadala
Copy link
Owner

No, it doesn't support Mac or Windows, because they aren't compatible with bluez and dbus.

@martmalo
Copy link

martmalo commented Mar 8, 2024

Does it still not support macOS?

@ianchanning
Copy link
Contributor

Could you add in the instructions that bluez and dbus is a requirement?

@gmacario
Copy link

Could you add in the instructions that bluez and dbus is a requirement?

It's here: https://github.com/chrvadala/node-ble/blob/main/README.md?plain=1#L105

If you have a better wording to suggest please create a Pull Request

@ianchanning
Copy link
Contributor

ianchanning commented Apr 14, 2024

@gmacario I'm working on a PR now. The compatibility section doesn't mention which apt packages you need. I never setup node-ble from scratch, so I'm not sure which ones are required. I know that bluez is required, but what else?

@gmacario
Copy link

@gmacario I'm working on a PR now. That doesn't mention which apt packages that you need. I never setup node-ble from scratch, so I'm not sure which ones are required. I know that bluez is required, but what else?

Not quite sure, anyway if it could help here is an excerpt of a Dockerfile where I use node-ble

...
FROM node:16-slim AS runner

# install bluez related packages
RUN apt-get update && apt-get install -y \
    bluetooth \
    dbus \
    sudo

RUN apt-get install -y \
    bluez \
    libbluetooth-dev \
    libudev-dev 

RUN apt-get clean

COPY ./bluezuser.conf /etc/dbus-1/system.d/
RUN useradd -m bluezuser -s /bin/bash \
 && usermod -aG bluetooth bluezuser \
 && passwd -d bluezuser
...

@ianchanning
Copy link
Contributor

@gmacario could you answer the question in #68 (comment) - are all those apt installs required? Did you try removing them?

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

5 participants