An open API service indexing awesome lists of open source software.

https://github.com/don/bluetoothlock


https://github.com/don/bluetoothlock

Last synced: 8 months ago
JSON representation

Awesome Lists containing this project

README

          

# Bluetooth Lock

## Arduino

![](images/BluetoothLock.png)

## 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](http://docs.phonegap.com/en/3.4.0/guide_platforms_ios_index.md.html#iOS%20Platform%20Guide) 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.
![](images/XcodeChoosePhone.png)
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.