This commit is contained in:
hathach committed 2017-02-27 17:37:11 +07:00
1 parent 50d703503e
commit 33bd4ad8d6
1 file changed
+13 -2
@@ -32,15 +32,26 @@ void setup()
void scan_callback(ble_gap_evt_adv_report_t* report)
{
Serial.print("Scan data: ");
Serial.println("Timestamp Addr Rssi Data");
Serial.printf("%09d ", millis());
Serial.printBuffer(report->peer_addr.addr, 6, ':');
Serial.print(" ");
Serial.print(report->rssi);
Serial.print(" ");
Serial.printBuffer(report->data, report->dlen, '-');
Serial.println();
// Check if advertising contain BleUart service
if ( Bluefruit.Central.checkUuidInScan(report, BLEUART_UUID_SERVICE) )
{
Serial.println("BLE UART service detected");
Serial.println(" BLE UART service detected");
}
Serial.println();
}
void loop()