Skip to content

Commit 2852115

Browse files
committed
Set default ESP32 advertisement parameters
1 parent 084a8c5 commit 2852115

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

esp32-led-blink-sdk/main/NimBLE.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public struct GAP: ~Copyable {
6363
public func startAdvertising(
6464
addressType: LowEnergyAddressType = .public,
6565
address: BluetoothAddress? = nil,
66-
parameters: ble_gap_adv_params = ble_gap_adv_params()
66+
parameters: ble_gap_adv_params = ble_gap_adv_params(conn_mode: UInt8(BLE_GAP_CONN_MODE_NON), disc_mode: UInt8(BLE_GAP_DISC_MODE_GEN), itvl_min: 0, itvl_max: 0, channel_map: 0, filter_policy: 0, high_duty_cycle: 0)
6767
) throws(NimBLEError) {
6868
var address = ble_addr_t(
6969
type: 0,

0 commit comments

Comments
 (0)