Skip to content

A NodeJS app to allow a rPi 3 or Pi Zero's + IoT pHat WiFi to be configured vai BLE

License

Notifications You must be signed in to change notification settings

cblims/node-bluepifi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WiFi-Provision

This is a NodeJS app to configure WiFi on a Raspberry Pi 3 or a Pi Zero with IoT pHAT via Bluetooth Low Energy and Web Bluetooth.

The reasons for this can be found here

How

To run clone the code

git clone https://github.com/KillingJacky/BluePiFi_Backend.git

Install bleno, follow guide here https://github.com/sandeepmistry/bleno. And especially make sure that you have stopped the bluetoothd service

sudo systemctl stop bluetooth
sudo systemctl disable bluetooth

You can first install the dependences described in bleno's project. And then

npm install

This will install all the dependences of this program (into project directory).

Now you can run this as root

sudo node index.js

Press the button on Mic Hat for at least 3 seconds, the RPi will go into configure mode. Now open the BluePiFi app...

After you've finished configuration, short press the button to stop BLE advertising and exit configure mode.

About

A NodeJS app to allow a rPi 3 or Pi Zero's + IoT pHat WiFi to be configured vai BLE

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 96.9%
  • Shell 3.1%