A BLE gateway implementation for nRF Cloud that can run on Raspberry PI (headless)
To use:
- Install the Noble prerequisites:
sudo apt-get install bluetooth bluez libbluetooth-dev libudev-dev
- Clone or download this repo (
git clone git@github.com:nRFCloud/gateway-raspberry-pi.git
) - Create a gateway using
npx @nrfcloud/gateway-registration
, make sure you have an account on nRF Cloud and use the same credentials - The result of the command will be in
./result
- Copy the files to the root of this project (same directory as this README)
- Run
npm install
- Build code:
npm run build
- Run gateway:
sudo npm run start
(sudo is necessary for Noble)- If you want to use the "Example" adapter, run:
npm run start -- example
- If you want to use the "Example" adapter, run:
- The gateway should start and it should connect immediately