@@ -561,8 +561,43 @@ void AdafruitBluefruit::printInfo(void)
561
561
// Skip if Bluefruit.begin() is not called
562
562
if ( _ble_event_sem == NULL ) return ;
563
563
564
- const char * title_fmt = " %-15s: " ;
564
+ Serial. println ( " --------- SoftDevice Config --------- " ) ;
565
565
566
+ const char * title_fmt = " %-16s: " ;
567
+
568
+ /* ------------- SoftDevice Config -------------*/
569
+ // Max uuid128
570
+ Serial.printf (title_fmt, " Max UUID128" );
571
+ Serial.println (_sd_cfg.uuid128_max );
572
+
573
+ // ATTR Table Size
574
+ Serial.printf (title_fmt, " ATTR Table Size" );
575
+ Serial.println (_sd_cfg.attr_table_size );
576
+
577
+ // Service Changed
578
+ Serial.printf (title_fmt, " Service Changed" );
579
+ Serial.println (_sd_cfg.service_changed );
580
+
581
+ #if SD_VER >= 500
582
+ // Max MTU
583
+ Serial.printf (title_fmt, " Max MTU" );
584
+ Serial.println (_sd_cfg.mtu_max );
585
+
586
+ // Event Length
587
+ Serial.printf (title_fmt, " Event Length" );
588
+ Serial.println (_sd_cfg.event_len );
589
+
590
+ // HVN Queue Size
591
+ Serial.printf (title_fmt, " HVN Queue Size" );
592
+ Serial.println (_sd_cfg.hvn_tx_qsize );
593
+
594
+ // Write Command Queue Size
595
+ Serial.printf (title_fmt, " WrCmd Queue Size" );
596
+ Serial.println (_sd_cfg.wr_cmd_qsize );
597
+ #endif
598
+
599
+ /* ------------- Settings -------------*/
600
+ Serial.println (" \n --------- BLE Settings ---------" );
566
601
// Name
567
602
Serial.printf (title_fmt, " Name" );
568
603
{
@@ -574,9 +609,9 @@ void AdafruitBluefruit::printInfo(void)
574
609
Serial.println ();
575
610
576
611
// Max Connections
577
- Serial.printf (title_fmt, " Max Connection " );
612
+ Serial.printf (title_fmt, " Max Connections " );
578
613
Serial.printf (" Peripheral = %d, " , _prph_enabled ? 1 : 0 );
579
- Serial.printf (" Central = %d, " , _central_enabled ? BLE_CENTRAL_MAX_CONN : 0 );
614
+ Serial.printf (" Central = %d " , _central_enabled ? BLE_CENTRAL_MAX_CONN : 0 );
580
615
Serial.println ();
581
616
582
617
// Address
@@ -592,16 +627,18 @@ void AdafruitBluefruit::printInfo(void)
592
627
}
593
628
Serial.println ();
594
629
630
+ // Tx Power
595
631
Serial.printf (title_fmt, " TX Power" );
596
632
Serial.printf (" %d dBm" , _tx_power);
597
633
Serial.println ();
598
634
635
+ // Connection Intervals
599
636
Serial.printf (title_fmt, " Conn Intervals" );
600
637
Serial.printf (" min = %.2f ms, " , _ppcp_min_conn*1 .25f );
601
638
Serial.printf (" max = %.2f ms" , _ppcp_max_conn*1 .25f );
602
639
Serial.println ();
603
640
604
- // List the paried device
641
+ /* ------------- List the paried device ------------- */
605
642
Serial.printf (title_fmt, " Paired Devices" );
606
643
Serial.println ();
607
644
0 commit comments