Skip to content

Windows and Mac support? #31

Closed
Closed

Description

@ajmas

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

If it does, are there any different setup instructions?

Activity

  1. chrvadala commented on Dec 7, 2021

    @chrvadala
    Owner

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

  2. martmalo commented on Mar 8, 2024

    @martmalo

    Does it still not support macOS?

  3. ianchanning commented on Apr 12, 2024

    @ianchanning
    Contributor

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

  4. gmacario commented on Apr 13, 2024

    @gmacario

    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

  5. ianchanning commented on Apr 14, 2024

    @ianchanning
    Contributor

    @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?

  6. gmacario commented on Apr 14, 2024

    @gmacario

    @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
    ...
    
  7. ianchanning commented on Apr 14, 2024

    @ianchanning
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions