File tree Expand file tree Collapse file tree 1 file changed +13
-2
lines changed
libraries/Bluefruit52Lib/examples/central/central_scan Expand file tree Collapse file tree 1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -32,15 +32,26 @@ void setup()
3232
3333void scan_callback (ble_gap_evt_adv_report_t * report)
3434{
35- Serial.print (" Scan data: " );
35+ Serial.println (" Timestamp Addr Rssi Data" );
36+
37+ Serial.printf (" %09d " , millis ());
38+
39+ Serial.printBuffer (report->peer_addr .addr , 6 , ' :' );
40+ Serial.print (" " );
41+
42+ Serial.print (report->rssi );
43+ Serial.print (" " );
44+
3645 Serial.printBuffer (report->data , report->dlen , ' -' );
3746 Serial.println ();
3847
3948 // Check if advertising contain BleUart service
4049 if ( Bluefruit.Central .checkUuidInScan (report, BLEUART_UUID_SERVICE) )
4150 {
42- Serial.println (" BLE UART service detected" );
51+ Serial.println (" BLE UART service detected" );
4352 }
53+
54+ Serial.println ();
4455}
4556
4657void loop ()
You can’t perform that action at this time.
0 commit comments