Code Monkey home page Code Monkey logo

bluetoothlock's Introduction

Bluetooth Lock

Arduino

Cordova (aka PhoneGap)

Setup

  • Xcode 5.0
  • Cordova 3.4.0

Cordova 3.4.0 won't work with Xcode 5.1, unless you apply patches. Please use Xcode 5.0.

Install NodeJS with brew install or download from http://nodejs.org.

Install Cordova using NPM, which comes with NodeJS.

$ npm install -g cordova

See the Cordova Documentation for more information.

Building

The project from git contains only the Cordova code. The iOS platform and BluetoothSerial plugin need to be installed into the project before running.

$ cd cordova
$ cordova platform add ios
$ cordova plugin add https://github.com/don/BluetoothSerial
$ cordova prepare
$ open platforms/ios/Lock.xcodeproj

Plug in your iPhone. Choose the target device in Xcode. Build and deploy through Xcode.

Making changes

You can modify the application by editing the files in $PROJECT_HOME/cordova/www.

Make sure you run cordova prepare before redeploying the app through Xcode.

bluetoothlock's People

Contributors

don avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bluetoothlock's Issues

No valid library error

Admittedly new to this but have researched as best I could. When I compile the sketch following error is received:

R:\WIP\161001 Ixxx 2016\Qxxx\Axxx_Ixxx_Dxxx\PROGRAMMING\BluetoothLockmaster\BluetoothLockmaster\arduino\BluetoothLock\BluetoothLock.ino:10:31: fatal error: Adafruit_BLE_UART.h: No such file or directory

include "Adafruit_BLE_UART.h"

                           ^

compilation terminated.

exit status 1
Error compiling for board Arduino/Genuino Uno.

When I try to add the library from the zip folder the following error is received:

Specified folder/zip file does not contain a valid library

At a loss hear. Any guidance would be greatly appreciated.
Thanks,
jj

Can't connect UART device with my S6

Hi Don,
First of all thanks for sharing your experience...

I tried the BluetoothLock tutorial.

When I am using Bluefruit LE app, I can see UART device, connect to it and send data to unlock.
But when I am using the cordova app on my Android device (Samsung S6 phone), the BluetoothSerial.list doesn't list the UART device.

Worse, When I go to Bluetooth phone parameters, I see UART device but when I click on it, it tells me that it is impossible de associate it with my phone.

I have also tested this : https://github.com/don/cordova-plugin-ble-central
This is working even if there is delay with communication.

Any idea or advice to help me with unlock project ?

Thanks
Jean

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.