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()
32
32
33
33
void scan_callback (ble_gap_evt_adv_report_t * report)
34
34
{
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
+
36
45
Serial.printBuffer (report->data , report->dlen , ' -' );
37
46
Serial.println ();
38
47
39
48
// Check if advertising contain BleUart service
40
49
if ( Bluefruit.Central .checkUuidInScan (report, BLEUART_UUID_SERVICE) )
41
50
{
42
- Serial.println (" BLE UART service detected" );
51
+ Serial.println (" BLE UART service detected" );
43
52
}
53
+
54
+ Serial.println ();
44
55
}
45
56
46
57
void loop ()
You can’t perform that action at this time.
0 commit comments