bleno | js module for implementing BLE | Networking library

 by   noble JavaScript Version: 0.5.0 License: MIT

kandi X-RAY | bleno Summary

kandi X-RAY | bleno Summary

bleno is a JavaScript library typically used in Networking, Raspberry Pi applications. bleno has no bugs, it has no vulnerabilities, it has a Permissive License and it has medium support. You can download it from GitHub.

A Node.js module for implementing BLE (Bluetooth Low Energy) peripherals. Need a BLE central module? See noble. Note: macOS / Mac OS X, Linux, FreeBSD and Windows are currently the only supported OSes.
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              bleno has a medium active ecosystem.
              It has 2054 star(s) with 463 fork(s). There are 93 watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 86 open issues and 313 have been closed. On average issues are closed in 49 days. There are 16 open pull requests and 0 closed requests.
              It has a neutral sentiment in the developer community.
              The latest version of bleno is 0.5.0

            kandi-Quality Quality

              bleno has 0 bugs and 0 code smells.

            kandi-Security Security

              bleno has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              bleno code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              bleno is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              bleno releases are not available. You will need to build from source code and install.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi has reviewed bleno and discovered the below as its top functions. This is intended to give you an instant insight into bleno implemented functionality, and help decide if they suit your requirements.
            • Characteristic constructor .
            • The Blob class .
            • Calculate a c1
            • InfiniteColoristic characteristic .
            • Constructs a new BlinkColoristic .
            • Provides aureCharacteristic for the pie .
            • Creates a new PlaceCharacteristicCharacteristicCharacteristic .
            • Provides a pretty - valueisticCharacteristic .
            • A hardware revision characteristic .
            • Encapsulates a serial number characteristic .
            Get all kandi verified functions for this library.

            bleno Key Features

            No Key Features are available at this moment for bleno.

            bleno Examples and Code Snippets

            No Code Snippets are available at this moment for bleno.

            Community Discussions

            QUESTION

            Extract 4 bits of Bluetooth HEX Data
            Asked 2021-Jul-05 at 23:03

            I'm trying to implement Bluetooth FTMS(Fitness Machine).

            ...

            ANSWER

            Answered 2021-Jul-05 at 23:03

            How Can I convert:

            From - [HEX] 00 00 40 02
            To - [DEC] 16386
            To - [BIN] 0100 0000 0000 0010

            You can simply use ContiguousBytes withUnsafeBytes method to load your bytes as UInt32. Note that it will use only the same amount of bytes needed to create the resulting type (4 bytes)

            Source https://stackoverflow.com/questions/68258711

            QUESTION

            Bleno : How to send a message back to the sender?
            Asked 2021-Jan-07 at 08:50

            I'm a bit new to the BLE environment, my code works just fine, buy I can't manage to get some sort of response,

            I'll show you the code, and I'll tell you more about my objective

            ...

            ANSWER

            Answered 2021-Jan-07 at 08:50

            For Write Requests, the BLE standard only defines that an error code can be returned. Nothing else. The error code must also be one of the allowed ones. You could send a Notification with some error text if you want, or place the last error message in a characteristic that can be read.

            Source https://stackoverflow.com/questions/65603307

            QUESTION

            BlueZ unable to accept incoming connection while advertising with SDP due to bluetoothd
            Asked 2020-Apr-19 at 02:28

            I am trying to use a Pi to emulate a Bluetooth device using the BlueZ C api. I am able to separately 1) configure the SDP server to advertise the correct service and 2) listen for and establish an L2CAP connection. However, I'm unable to do both at the same time.

            The issue is that sdp_record_register() will segfault unless bluetoothd is both running and in compatibility mode. However, accept() won't return for the Bluetooth socket if bluetoothd is running, because bluetoothd will steal the request.

            So I can either:

            1. Register/advertise my service with SDP, but not be able to accepting incoming connections, by running bluetoothd (in compatibility mode).
            2. Be able to accept incoming connections, but not able to register/advertise my service, by not running bluetoothd.
            Setting up the SDP service ...

            ANSWER

            Answered 2020-Apr-19 at 02:28

            The (unsatisfying but correct) answer is to not use the hci* API. That API is apparently deprecated, so bugs like that segfault are not going to be fixed. The correct way to do this is to use the DBus API. That API is almost as cumbersome as the hci API, but at least it's documented.

            After swapping out the massive amount of hci-based code I'de written with the gdbus API offered by glib-2.0 to set up the SDP service, I was finally able to advertise the service and connect at the same time. My socket code worked without modification.

            Source https://stackoverflow.com/questions/61182650

            QUESTION

            node.js BLE API for windows requires external dongle
            Asked 2020-Apr-16 at 11:46

            I'm developping a node.js electron app and I need to decide if our Hardware will feature BLE or standard Bluetooth. I found a couple of APIs (bleno & noble) for this purpose. However for Windows OS both of these require me to use an additional bluetooth usb adapter (used WinUSB & Zadig).

            To put it bluntly, is there any way to communicate with a BLE device on a Windows OS using node.js without using an external dongle?

            It seems like standard bluetooth is just way less of a hassle. Thanks!

            ...

            ANSWER

            Answered 2020-Apr-14 at 19:28

            The official Bluetooth API on Windows is built for Windows Runtime, https://docs.microsoft.com/en-us/microsoft-edge/windows-runtime. It supports Javascript but I'm not sure if you need a specific js environment. If you don't get that working, you should write or use a native binding for node.js.

            Source https://stackoverflow.com/questions/61210365

            QUESTION

            How in a bluetooth connection can the Peripheral get the Central device name
            Asked 2020-Jan-17 at 17:02

            Is there any way for a Peripheral to get a Central device's name when establishing a bluetooth connection (BLE)? I'm unsure if Bleno has the tools necessary to get this.

            ...

            ANSWER

            Answered 2020-Jan-17 at 17:02

            Just read the Device Name in the remote GATT server. The peripheral must support GATT client in order to be able to read the device name.

            Source https://stackoverflow.com/questions/59790911

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install bleno

            You can download it from GitHub.

            Support

            Tools LightBlue for iOS/OS X nRF Master Control Panel (BLE) for Android hcitool and gatttool by BlueZ for Linux
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/noble/bleno.git

          • CLI

            gh repo clone noble/bleno

          • sshUrl

            git@github.com:noble/bleno.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular Networking Libraries

            Moya

            by Moya

            diaspora

            by diaspora

            kcptun

            by xtaci

            cilium

            by cilium

            kcp

            by skywind3000

            Try Top Libraries by noble

            noble

            by nobleJavaScript

            noble-device

            by nobleJavaScript