JSPM

@hsync/node-red-ble-uart

0.4.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 4
    • Score
      100M100P100Q52924F
    • License ISC

    Turn your node-red instance into a simple BLE UART device

    Package Exports

      This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hsync/node-red-ble-uart) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

      Readme

      @hsync/node-red-ble-uart

      A simple set of Node-RED nodes for creating a BluetoothLE host (GATT) UART service.

      It turns your node-red instance into a BLE peripheral that implements the Nordic UART Service.

      Think of it as a wireless serial cable port that you can connect to with bluetooth.

      Available Nodes:

      • uart-in
      • uart-notify

      Install

      Run the following command in your Node-RED user directory - typically ~/.node-red

      npm install @hsync/node-red-ble-uart

      Under the covers, these nodes are using Bleno for bluetooth connectivity with node.js.

      Make sure to install any dependencies Bleno has for your platform, such as Raspberry Pi OS

      also note, if on Linux you may want to make this adjustment so as not to require running as root:

      sudo setcap cap_net_raw+eip $(eval readlink -f `which node`)

      Nodes

      After adding either or both uart-in or uart-notify nodes to your flow and deploying, your node-red instance is discoverable via BLE. You can simply connect any bluetooth client (even webBluetooth!) to it and read/write data to your flow.

      uart-in This node will receive input from a connected client. Any data written to the RxCharacteristic BLE characteristic will inject a Buffer of that data to the flow.

      uart-notify A client that subscribes to the UART TxCharacteristic will get data when a message is sent to this node.