File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -73,9 +73,7 @@ const main = async () => {
7373
7474 await adapter . startAdvertising ( NAME , [ '48ee0000bf49460ca3d77ec7a512a4ce' ] ) ;
7575
76- console . log ( adapter . address ) ;
77-
78- console . log ( 'Advertising...' ) ;
76+ console . log ( `Advertising as ${ adapter . address } ...` ) ;
7977} ;
8078
8179main ( ) . catch ( ( err ) => {
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ const main = async () => {
4646 console . log ( 'Waiting to scan a bit...' ) ;
4747
4848 // Scan for 3 seconds
49- await new Promise ( ( resolve ) => setTimeout ( resolve , 5000 ) ) ;
49+ await new Promise ( ( resolve ) => setTimeout ( resolve , 3000 ) ) ;
5050
5151 await adapter . stopScanning ( ) ;
5252
@@ -110,6 +110,7 @@ const main = async () => {
110110 success ++ ;
111111 } catch ( err ) {
112112 console . error ( err ) ;
113+ await new Promise ( ( resolve ) => setTimeout ( ( ) => resolve ( ) , 1000 ) ) ;
113114 }
114115
115116 total ++ ;
You can’t perform that action at this time.
0 commit comments