Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Embedded Swift support #33

Merged
merged 36 commits into from
Nov 15, 2024
Merged
Changes from 1 commit
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0e60677
Updated dependencies
colemancda Nov 6, 2024
1b35332
Add Embedded Swift support to `AdvertisementData`
colemancda Nov 12, 2024
4aca8e1
Updated dependencies
colemancda Nov 12, 2024
f085ea0
Add `OptionSet` conformance to `AttributePermissions`
colemancda Nov 12, 2024
f9a74e5
Add `OptionSet` conformance to `CharacteristicProperties`
colemancda Nov 12, 2024
ead10d4
Add Embedded Swift support to `ScanData`
colemancda Nov 12, 2024
c7d4588
Add `PeripheralManager.Data`
colemancda Nov 12, 2024
0d8bf76
Add `DataConvertible` support to `ManufacturerSpecificData`
colemancda Nov 12, 2024
6405d10
Add `Sendable` conformance to `GATTCentralAttribute`
colemancda Nov 12, 2024
0846411
Update `AsyncCentralScan`
colemancda Nov 13, 2024
17213bf
Add `CentralManager.Data`
colemancda Nov 13, 2024
ac154f2
Add `Sendable` conformance to `Peer`
colemancda Nov 13, 2024
4c21f4f
Update for Swift 6
colemancda Nov 13, 2024
66cbb4a
Add `Sendable` conformance to `MaximumTransmissionUnit`
colemancda Nov 13, 2024
7004f48
Fixed `AsyncCentralScan`
colemancda Nov 13, 2024
7c69492
Update `GATTClientConnection` for Swift 6
colemancda Nov 14, 2024
68e82d7
Add `Identifiable` conformance to `Peer`
colemancda Nov 14, 2024
11e7e3e
Fix Swift Embedded support for `ScanData`
colemancda Nov 14, 2024
852f70b
Fix Swift 6 concurrency issues in DarwinGATT
colemancda Nov 14, 2024
e8ee5ce
Update dependencies
colemancda Nov 14, 2024
4303c50
Improve concurrency support for `GATTServerConnection`
colemancda Nov 14, 2024
a1fb13d
Update `GATTCentral` for `L2CAPConnection`
colemancda Nov 14, 2024
1984595
Update `GATTPeripheral` for `L2CAPServer`
colemancda Nov 14, 2024
c4fe9e8
Improve Embedded Swift support
colemancda Nov 14, 2024
f860151
Updated unit tests
colemancda Nov 14, 2024
97de3fd
Updated unit tests
colemancda Nov 14, 2024
3dad871
Fixed `GATTPeripheral.didWrite()`
colemancda Nov 14, 2024
e83fb01
Add Embedded Swift support for `PeripheralManager`
colemancda Nov 14, 2024
2906df6
Update VS Code container
colemancda Nov 14, 2024
3502b46
Updated GitHub CI
colemancda Nov 14, 2024
8f2c781
Remove platform deployment requirement
colemancda Nov 15, 2024
f2fa2f9
Updated `DarwinPeripheral` for `PeripheralManager` conformance
colemancda Nov 15, 2024
697126b
Updated unit tests
colemancda Nov 15, 2024
c41faee
Add `PeripheralManager.log`
colemancda Nov 15, 2024
13bd4d1
Fixed `CentralManager.log`
colemancda Nov 15, 2024
198bf60
Add `Identifiable` conformance
colemancda Nov 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add Identifiable conformance to Peer
colemancda committed Nov 14, 2024
commit 68e82d79c207e629b24c6fe75c37ab6392e39b54
12 changes: 3 additions & 9 deletions Sources/GATT/Peer.swift
Original file line number Diff line number Diff line change
@@ -9,10 +9,8 @@
import Bluetooth

/// Bluetooth LE Peer (Central, Peripheral)
public protocol Peer: Hashable, CustomStringConvertible, Sendable {

associatedtype ID: Hashable, CustomStringConvertible

public protocol Peer: Hashable, CustomStringConvertible, Sendable, Identifiable {

/// Unique identifier of the peer.
var id: ID { get }
}
@@ -28,7 +26,7 @@ public extension Peer {
}

var description: String {
return id.description
return "\(id)"
}
}

@@ -46,8 +44,6 @@ public struct Central: Peer {
}
}

extension Central: Identifiable { }

// MARK: - Peripheral

/// Peripheral Peer
@@ -61,5 +57,3 @@ public struct Peripheral: Peer {
self.id = id
}
}

extension Peripheral: Identifiable { }