Skip to content

Instantly share code, notes, and snippets.

@AminPlusPlus
Created July 9, 2020 02:26
Show Gist options
  • Save AminPlusPlus/290c3bc12a5547109a6e96a543ff3318 to your computer and use it in GitHub Desktop.
Save AminPlusPlus/290c3bc12a5547109a6e96a543ff3318 to your computer and use it in GitHub Desktop.
DiscoverCharacteristics for service
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