I am using SwiftifyBluetooth on Cocoapods but... I did use discoverServices but it only showed as its CBService's value... but I can't seem to know how to convert from its value to string... I checked on how SwiftifyBluetooth and Core Bluetooth work and hit a dead end from myself...
here is the code:
peri[0].discoverServices(withUUIDs: nil, completion: {
result in
switch result{
case .success(let services):
print(services)
break
case .failure(let error):
print(error)
break
}
})
and this was the outputted printed in the services EDIT: [<CBService: 0x283f14ac0, isPrimary = YES, UUID = 1804>, <CBService: 0x283f14700, isPrimary = YES, UUID = Battery>, <CBService: 0x283f15480, isPrimary = YES, UUID = Device Information>, <CBService: 0x283f15840, isPrimary = YES, UUID = 49535343-FE7D-4AE5-8FA9-9FAFD205E455>]
I was just checking if this is possible to convert the the CBServices value from that datatype to string
service.uuid.uuidString.services.first?.uuid.uuidString?servicesan array? Or a singleCBService? EachCBServicehas auuid, and theuuid.uuidStringis the string ID for that service.