Skip to content

Commit

Permalink
Merge pull request #24 from dwi2/display_mac
Browse files Browse the repository at this point in the history
Display mac address on screen
  • Loading branch information
dwi2 committed Jun 23, 2015
2 parents 5fb3ae9 + cf191ab commit 4eae95d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ var App = {
case 'connected':
elem.textContent = 'Disconnect';
elem.disabled = false;
this.bluetoothInfoElem.textContent = this.rsHelper.getDeviceAddress();
break;
case 'disconnect':
elem.textContent = 'Connect';
Expand Down
9 changes: 9 additions & 0 deletions js/rolling_spider_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ function RollingSpiderHelper() {

RollingSpiderHelper.prototype = evt({

_device: undefined,

getDeviceAddress: function() {
if (this._device) {
return this._device.address
}
return 'unknown device';
},

isAbleToConnect: function() {
return this._stateManager.isAbleToConnect();
},
Expand Down

0 comments on commit 4eae95d

Please sign in to comment.