iphone - iOS - Property 'isConnected' not found on object of type 'CBPeripheral' -
good day. trying replicate android app made ios. i'm trying make ble application ios device able see , connect ble devices , rssi (i don't care message , other data). upon search research, found this blte central peripheral transfer examplein ios developer library. upon downloading, opening xcode project, , ran it. however, ran error shorty after code:
if (!self.discoveredperipheral.isconnected) { return; }
where error is: property 'isconnected' not found on object of type 'cbperipheral'
upon searching again, i found link. however, seems thread not have solutions answers discussed seem deprecated. can't seem find solutions issue well.
has tried make code ios developer library work? lead appreciated. pretty sad code ios dev site deprecated , not updated.
the documentation says
deprecation statement
use state property instead.
Comments
Post a Comment