Mobile Philly - November 13, 2013
Presented by Don Coleman / @doncoleman
$ cordova plugin install com.megster.cordova.bluetoothserial
var macAddress = "00:00:AA:BB:CC:DD";
var connected = function() {
// connected, do something
};
var disconnected = funtion(error) {
// disconnected
};
bluetoothSerial.connect(macAddress, connected, disconnected);
var onMessage = function(data) {
console.log(data);
};
bluetoothSerial.subscribe("\n", onMessage, onFailure);
bluetoothSerial.write("Hello Arduino");
(not CoreBluetooth)
CLBeacon, CLBeaconRegion, CLLocationManagerDelegateDon Coleman
Connecting iOS and Android to Arduino with Bluetooth by Don Coleman
is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Based on a work at https://github.com/don/.../2013-11-13-mobilephilly-bluetooth.