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
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.