add printBufferReverse

This commit is contained in:
hathach committed 2017-11-22 09:11:24 +07:00
1 parent 182d59c683
commit ea73d76513
6 files changed
+27 -13

No files matched your search

@@ -41,7 +41,8 @@ void scan_callback(ble_gap_evt_adv_report_t* report)
Serial.printf("%09d ", millis());
Serial.printBuffer(report->peer_addr.addr, 6, ':');
// MAC is in little endian --> print reverse
Serial.printBufferReverse(report->peer_addr.addr, 6, ':');
Serial.print(" ");
Serial.print(report->rssi);
@@ -69,7 +69,8 @@ void scan_callback(ble_gap_evt_adv_report_t* report)
{
Serial.printf("[ADV%9d] Packet received from ", millis());
}
Serial.printBuffer(report->peer_addr.addr, 6, ':');
// MAC is in little endian --> print reverse
Serial.printBufferReverse(report->peer_addr.addr, 6, ':');
Serial.print("\n");
/* Raw buffer contents */
@@ -255,7 +255,8 @@ void scan_callback(ble_gap_evt_adv_report_t* report)
{
Serial.printf("[ADV%9d] Packet received from ", millis());
}
Serial.printBuffer(report->peer_addr.addr, 6, ':');
// MAC is in little endian --> print reverse
Serial.printBufferReverse(report->peer_addr.addr, 6, ':');
Serial.println("");
/* Raw buffer contents */