Created
July 9, 2020 02:26
-
-
Save AminPlusPlus/290c3bc12a5547109a6e96a543ff3318 to your computer and use it in GitHub Desktop.
DiscoverCharacteristics for service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func peripheral(_ peripheral: CBPeripheral, didDiscoverCharacteristicsFor service: CBService, error: Error?) { | |
if let charac = service.characteristics { | |
for characteristic in charac { | |
//MARK:- Light Value | |
if characteristic.uuid == Digital { | |
self.lighCharacteristics = characteristic | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment