Skip to content

Commit

Permalink
Fixed bug in Bluno Hello World, there is no config descriptor to writ…
Browse files Browse the repository at this point in the history
…e on Bluno, trying to do this causes error on Android.
  • Loading branch information
Mikael Kindborg committed Nov 17, 2016
1 parent daf0a2a commit cc95cb3
Show file tree
Hide file tree
Showing 2 changed files with 549 additions and 237 deletions.
6 changes: 3 additions & 3 deletions examples/bluno-helloworld/app/app.js
Expand Up @@ -27,10 +27,8 @@ document.addEventListener(

var app = {};

//app.DFRBLU_SERVICE_UUID = 'dfb0';
app.DFRBLU_SERVICE_UUID = '0000dfb0-0000-1000-8000-00805f9b34fb';
app.DFRBLU_CHAR_RXTX_UUID = '0000dfb1-0000-1000-8000-00805f9b34fb';
app.DFRBLU_TX_UUID_DESCRIPTOR = '00002902-0000-1000-8000-00805f9b34fb';

app.initialize = function()
{
Expand Down Expand Up @@ -119,11 +117,13 @@ app.connectTo = function(address)
$('#controlView').show();

device.enableNotification(
app.DFRBLU_SERVICE_UUID,
app.DFRBLU_CHAR_RXTX_UUID,
app.receivedData,
function(errorCode) {
console.log('BLE enableNotification error: ' + errorCode);
});
},
{ writeConfigDescriptor: false });
}

function onServiceFailure(errorCode)
Expand Down

0 comments on commit cc95cb3

Please sign in to comment.