This is a GAP example for the new features introduced in Bluetooth Core Spec v5.0.

Revision:
18:017918f93afe
Parent:
17:e09f9a97d1af
--- a/source/main.cpp	Fri Dec 28 02:42:58 2018 +0000
+++ b/source/main.cpp	Fri Dec 28 02:54:08 2018 +0000
@@ -178,8 +178,8 @@
                addr[5], addr[4], addr[3], addr[2], addr[1], addr[0]);
 
         /* setup the default phy used in connection to 2M to reduce power consumption */
-        Gap::PhySet_t tx_phys(/* 1M */ true, /* 2M */ false, /* coded */ false);
-        Gap::PhySet_t rx_phys(/* 1M */ true, /* 2M */ false, /* coded */ false);
+        Gap::PhySet_t tx_phys(/* 1M */ false, /* 2M */ true, /* coded */ false);
+        Gap::PhySet_t rx_phys(/* 1M */ false, /* 2M */ true, /* coded */ false);
         ble_error_t err = _ble.gap().setPreferredPhys(&tx_phys, &rx_phys);
         if (err) {
             printf("INFO: GAP::setPreferedPhys failed with error code %s", BLE::errorToString(err));