Giter Club home page Giter Club logo

samsungbluetoothwifimanager's People

Contributors

nherriot avatar poshaughnessy avatar rzr avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

samsungbluetoothwifimanager's Issues

Just to clarify for anybody INSTALL + tried to run the PWA

Hey guys!
Im just going to get this clear_-er_ for people trying this out in this day and age.
Or even myself if I forget later, lol.
So. Im installing this on RPI 3b+ with raspbian.

When you run
sudo setcap cap_net_raw+eip $(eval readlink -f which node)
if you get an error because of the symlink
just run
which node
and do
sudo setcap cap_net_raw+eip #OUTPUT FROM WHICH NODE HERE#

Then, you might get errors building the bluetooth-hci-manager.
For this you might need to downgrade node

So, install n, globally if you haven't.

sudo npm install -g n

and then downgrade to 9.11.2 using the n package.

sudo n 9.11.2

This done, you should be able to run the manager on your server. The pwa.. is a whole different story, just spent a couple of hours trying to run it but sapper and svelte aren't my area and there's virtually no docs.

Im now trying to get connected to a wifi network using only Light Blue and then if it works, I'll implement it in my web app.

Add designs to a documentation folder

From notes taken it FOSDEM 2019, it seems to be clear that i need to put our design documents into a document folder in the case where people may want to try this out, but understand how the thing actually works!

  1. Take sequence diagrams and place into a design folder.
  2. Take architecture diagrams and place into a design folder.
  3. Consider having a readme or WiKi to discuss all this and explain how the thing works.
  4. Implement a WiKi anyway - it needs to have diagrams on how it works and what it looks like.

Add better doucmentation on using SVELT/SAPPER

The SVELT/SAPPER documentation is great to get up and running but we need:

  1. documentation on the general design of the application and how it works.
  2. there is nothing explaining how to deploy this. We NEED that!
  3. we also need to document the ansible scripts.
  4. the ansible scripts need to be updated to include the nginx setup.
  5. the ansible scripts need to be updated to include the lets encrypt setup.
  6. the documentation needs to explain how to get SSL/HTTPS setup and why it's important.

Calling the NetworkCharacteristic function via BLE on your handset causes an error or the embdedded device.

During testing of the embedded Bluetooth WiFi manager - an error happens when calling up the NetworkCharaceristic.onreadRequest method.

To reproduce run on a Raspberry pi zero with the latest raspbian image.

  1. Use LightBlue Explorer BLE Android test app.
  2. Pair with bluetooth 'IoT Gateway WiFi Setup' device.
  3. Run Bluetooth WiFi Manager manually: /$ node bluetooth-wifi-manager.js
  4. On the LightBlue Explorer app select 'the currently visible network names'.
  5. Select the 'READ AGAIN' button

The will generate an error like:

WiFi -> stateChange: COMPLETED
WARNING! NetworkCharacteristic state is: srt2 srguest srg2 srtest srsec srbackup RandomPhone SWIFT_1 daliwifi srtest-g AGAH Guest WiFi BTWifi-X BTWi-fi Redmi but the wifi manager has it as: [object Set] updating BLE values
buffer.js:202
throw new TypeError(kFromErrorMsg);
^

TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
at Function.Buffer.from (buffer.js:202:9)
at new Buffer (buffer.js:158:17)
at NetworkCharacteristic.onReadRequest (/home/pi/samsung/SamsungBluetoothWiFiManager/bleno/bluetooth-wifi-manager/wifi-networks-characteristic.js:47:14)
at emitTwo (events.js:126:13)
at NetworkCharacteristic.emit (events.js:214:7)
at Gatt.handleReadOrReadBlobRequest (/home/pi/samsung/SamsungBluetoothWiFiManager/bleno/node_modules/bleno/lib/hci-socket/gatt.js:787:29)
at Gatt.handleRequest (/home/pi/samsung/SamsungBluetoothWiFiManager/bleno/node_modules/bleno/lib/hci-socket/gatt.js:335:23)
at Gatt.onAclStreamData (/home/pi/samsung/SamsungBluetoothWiFiManager/bleno/node_modules/bleno/lib/hci-socket/gatt.js:274:8)
at emitTwo (events.js:131:20)
at AclStream.emit (events.js:214:7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.