File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,5 +37,5 @@ exports.get = function(url) {
37
37
}
38
38
39
39
exports . advertise = function ( url ) {
40
- NRF . setAdvertising ( exports . get ( url ) , { interval :100 } ) ;
40
+ NRF . setAdvertising ( [ exports . get ( url ) ] , { interval :100 } ) ;
41
41
} ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ require("ble_ibeacon").advertise({
10
10
11
11
exports . get = function ( options ) {
12
12
if ( ! options . uuid || options . uuid . length != 16 )
13
- throw "Invalid UUID: must be exactly 16 bytes"
13
+ throw new Error ( "Invalid UUID: must be exactly 16 bytes" ) ;
14
14
var d = [ 0x1a , // Length of manufacturer data
15
15
0xff , // Param: Manufacturer data
16
16
0x4c , 0x00 , // Apple company id
@@ -29,5 +29,5 @@ exports.get = function(options) {
29
29
} ;
30
30
31
31
exports . advertise = function ( options ) {
32
- NRF . setAdvertising ( exports . get ( options ) , { interval :100 } ) ;
32
+ NRF . setAdvertising ( [ exports . get ( options ) ] , { interval :100 } ) ;
33
33
} ;
You can’t perform that action at this time.
0 commit comments