Bluetooth Authentication
This repository provides the Bluetooth authentication service for the FawnRescue drone, enabling secure BLE connections between the drone and the control application. It's built on Node.js and utilizes Bluetooth Low Energy (BLE) technology to facilitate a secure authentication flow.
To use this service, you'll need Node.js and npm installed on your machine. The setup is straightforward:
- Node.js installed (v14.x or above recommended)
- npm (usually comes with Node.js)
Clone the repository and install the dependencies to get started:
git clone https://github.com/FawnRescue/bluetooth.git
cd bluetooth
npm installStart the BLE server by running the main script:
node bluetooth.jsThe bluetooth.js file contains the code to initialize the BLE server, allowing it to listen for connections from the FawnRescue app.
The Bluetooth service is designed to be integrated with both the drone hardware and the control application:
-
Drone Integration: Follow the instructions in the drone's repository to integrate the BLE service, ensuring the BLE UUIDs in the
bluetooth.jsmatch those expected by the drone's firmware. -
App Integration: The control application should implement the BLE client logic to establish a connection with the BLE service running on the drone, using the API endpoints defined in
bluetooth.js.
