summaryrefslogtreecommitdiffstats
path: root/api/direct_bt
diff options
context:
space:
mode:
Diffstat (limited to 'api/direct_bt')
-rw-r--r--api/direct_bt/BTAdapter.hpp12
-rw-r--r--api/direct_bt/HCIHandler.hpp6
2 files changed, 9 insertions, 9 deletions
diff --git a/api/direct_bt/BTAdapter.hpp b/api/direct_bt/BTAdapter.hpp
index 3e0f82ac..f6bf2748 100644
--- a/api/direct_bt/BTAdapter.hpp
+++ b/api/direct_bt/BTAdapter.hpp
@@ -1180,8 +1180,8 @@ namespace direct_bt {
* @param eir Full ADV EIR EInfoReport, will be updated with getName() and at least GAPFlags::LE_Gen_Disc set.
* @param adv_mask EIRDataType mask for EInfoReport to select advertisement EIR PDU data, defaults to EIRDataType::FLAGS | EIRDataType::SERVICE_UUID
* @param scanrsp_mask EIRDataType mask for EInfoReport to select scan-response (active scanning) EIR PDU data, defaults to EIRDataType::NAME | EIRDataType::CONN_IVAL
- * @param adv_interval_min in units of 0.625ms, default value 640 for 400ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
- * @param adv_interval_max in units of 0.625ms, default value 640 for 400ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
+ * @param adv_interval_min in units of 0.625ms, default value 160 for 100ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
+ * @param adv_interval_max in units of 0.625ms, default value 480 for 300ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
* @param adv_type see AD_PDU_Type, default ::AD_PDU_Type::ADV_IND
* @param adv_chan_map bit 0: chan 37, bit 1: chan 38, bit 2: chan 39, default is 0x07 (all 3 channels enabled)
* @param filter_policy 0x00 accepts all PDUs (default), 0x01 only of whitelisted, ...
@@ -1197,7 +1197,7 @@ namespace direct_bt {
EInfoReport& eir,
EIRDataType adv_mask = EIRDataType::FLAGS | EIRDataType::SERVICE_UUID,
EIRDataType scanrsp_mask = EIRDataType::NAME | EIRDataType::CONN_IVAL,
- const uint16_t adv_interval_min=640, const uint16_t adv_interval_max=640,
+ const uint16_t adv_interval_min=160, const uint16_t adv_interval_max=480,
const AD_PDU_Type adv_type=AD_PDU_Type::ADV_IND,
const uint8_t adv_chan_map=0x07,
const uint8_t filter_policy=0x00) noexcept;
@@ -1232,8 +1232,8 @@ namespace direct_bt {
* @param gattServerData_ the DBGattServer data to be advertised and offered via GattHandler as ::GATTRole::Server.
* Its handles will be setup via DBGattServer::setServicesHandles().
* Reference is held until next disconnect.
- * @param adv_interval_min in units of 0.625ms, default value 640 for 400ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
- * @param adv_interval_max in units of 0.625ms, default value 640 for 400ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
+ * @param adv_interval_min in units of 0.625ms, default value 160 for 100ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
+ * @param adv_interval_max in units of 0.625ms, default value 480 for 300ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
* @param adv_type see AD_PDU_Type, default ::AD_PDU_Type::ADV_IND
* @param adv_chan_map bit 0: chan 37, bit 1: chan 38, bit 2: chan 39, default is 0x07 (all 3 channels enabled)
* @param filter_policy 0x00 accepts all PDUs (default), 0x01 only of whitelisted, ...
@@ -1246,7 +1246,7 @@ namespace direct_bt {
* @since 2.4.0
*/
HCIStatusCode startAdvertising(DBGattServerRef gattServerData_,
- const uint16_t adv_interval_min=640, const uint16_t adv_interval_max=640,
+ const uint16_t adv_interval_min=160, const uint16_t adv_interval_max=480,
const AD_PDU_Type adv_type=AD_PDU_Type::ADV_IND,
const uint8_t adv_chan_map=0x07,
const uint8_t filter_policy=0x00) noexcept;
diff --git a/api/direct_bt/HCIHandler.hpp b/api/direct_bt/HCIHandler.hpp
index ad37724d..883ee55e 100644
--- a/api/direct_bt/HCIHandler.hpp
+++ b/api/direct_bt/HCIHandler.hpp
@@ -852,8 +852,8 @@ namespace direct_bt {
* @param peer_bdaddr EUI48 of directed peer, defaults to EUI48::ANY_DEVICE (zero address)
* @param own_mac_type HCILEOwnAddressType::PUBLIC (default) or random/private.
* @param peer_mac_type HCILEOwnAddressType::PUBLIC (default) or random/private.
- * @param adv_interval_min in units of 0.625ms, default value 640 for 400ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
- * @param adv_interval_max in units of 0.625ms, default value 640 for 400ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
+ * @param adv_interval_min in units of 0.625ms, default value 160 for 100ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
+ * @param adv_interval_max in units of 0.625ms, default value 480 for 300ms; Value range [0x0020 .. 0x4000] for [20ms .. 10.24s]
* @param adv_type see AD_PDU_Type, default ::AD_PDU_Type::ADV_IND
* @param adv_chan_map bit 0: chan 37, bit 1: chan 38, bit 2: chan 39, default is 0x07 (all 3 channels enabled)
* @param filter_policy 0x00 accepts all PDUs (default), 0x01 only of whitelisted, ...
@@ -866,7 +866,7 @@ namespace direct_bt {
const EUI48 &peer_bdaddr=EUI48::ANY_DEVICE,
const HCILEOwnAddressType own_mac_type=HCILEOwnAddressType::PUBLIC,
const HCILEOwnAddressType peer_mac_type=HCILEOwnAddressType::PUBLIC,
- const uint16_t adv_interval_min=640, const uint16_t adv_interval_max=640,
+ const uint16_t adv_interval_min=160, const uint16_t adv_interval_max=480,
const AD_PDU_Type adv_type=AD_PDU_Type::ADV_IND,
const uint8_t adv_chan_map=0x07,
const uint8_t filter_policy=0x00) noexcept;