Skip to content

Commit

Permalink
Set default ESP32 advertisement parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
colemancda committed Nov 6, 2024
1 parent 084a8c5 commit 2852115
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion esp32-led-blink-sdk/main/NimBLE.swift
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public struct GAP: ~Copyable {
public func startAdvertising(
addressType: LowEnergyAddressType = .public,
address: BluetoothAddress? = nil,
parameters: ble_gap_adv_params = ble_gap_adv_params()
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)
) throws(NimBLEError) {
var address = ble_addr_t(
type: 0,
Expand Down

0 comments on commit 2852115

Please sign in to comment.