PureSwift / BluetoothLinux

Pure Swift Linux Bluetooth Stack
MIT License
184 stars 30 forks source link

Implement RawRepresentable initializer for Address #7

Closed colemancda closed 6 years ago

colemancda commented 8 years ago

Implement init(rawValue: String) for Address. I believe a regex would suffice.

Here is one I developed. ([0-9A-F]{2}):([0-9A-F]{2}):([0-9A-F]{2}):([0-9A-F]{2}):([0-9A-F]{2}):([0-9A-F]{2})

colemancda commented 6 years ago

Implemented in https://github.com/PureSwift/Bluetooth/commit/a15c5215f3bd1a314355912e5c5755e8d8cffee3